/** * MemoryApprovalStore — first-party in-memory implementation of the * ApprovalStore contract (src/manifest/approval/approval-store.ts). * * Intended use: * - Unit and conformance tests * - Local development and sample applications * - Reference for downstream durable implementations * * Durability: none. State lives in process memory only. Sharing one * `MemoryApprovalStore` instance between multiple `RuntimeEngine` instances * lets a request created by one engine be approved by another — the exact * cross-request behavior a durable store provides in production. * * Defensive copying: `load` and `list` return deep clones and `save` stores * a deep clone, so callers cannot mutate stored state by reference. This * mirrors the serialize/deserialize boundary of a real database adapter and * keeps the cross-engine semantics honest. */ import type { ApprovalRequestState } from '../../runtime-engine'; import type { ApprovalStore } from '../approval-store'; export declare class MemoryApprovalStore implements ApprovalStore { private requests; load(key: string): Promise; save(key: string, state: ApprovalRequestState, _tx?: unknown): Promise; list(): Promise; expire(now: number): Promise; /** Number of requests currently stored. Not part of the contract. */ size(): number; /** Drop all stored requests. Not part of the contract — for test cleanup. */ clear(): void; } //# sourceMappingURL=memory.d.ts.map