# StateStore API

Interface definition for state store implementations

---
Canonical: /handbook/api/interfaces/_purista_core.StateStore/
Source: core/StateStore/types/StateStore.ts
Format: Markdown for agents
---

Interface definition for state store implementations

Package: `@purista/core`

## Signature

```typescript
interface StateStore
```

## Members

### Properties

- `getState: StateGetterFunction` — get a state value
- `name: string` — name of store
- `removeState: StateDeleteFunction` — delete a state value
- `setState: StateSetterFunction` — set a state value

### Methods

- `destroy(): Promise<void>` — disconnects and shuts down the state store
