import { p as StorageAdapter, f as FlowState, A as AcquireLockOptions, h as Lock } from '../types-D8r3B8Ax.js'; /** * In-memory storage adapter. Safe default for tests, single-process services, * and browser/mobile usage where durability isn't required. * * Implements in-process locking — sufficient for single-process safety. * For multi-worker deployments use a durable adapter (Postgres/Redis) whose * locks survive across processes. * * State is cloned on both read and write so callers can't accidentally mutate * stored snapshots. */ declare class MemoryStorage implements StorageAdapter { private readonly store; private readonly locks; private readonly waiters; private key; load(flowName: string, flowId: string): Promise; save(state: FlowState): Promise; delete(flowName: string, flowId: string): Promise; acquireLock(flowName: string, flowId: string, options: AcquireLockOptions): Promise; private claim; /** Return every persisted state (useful for introspection/tests). */ snapshot(): FlowState[]; clear(): void; get size(): number; } declare function createMemoryStorage(): MemoryStorage; export { MemoryStorage, createMemoryStorage };