import { type StoreAdapter } from "../index.js"; /** * Reference in-memory StoreAdapter: used by unit tests, and as createAgent's * no-store default (03-agent §1, kill-list B5). Process-lifetime only — not * durable persistence. * * Double-level behavior (NOT contract — the conformance suite does not assert * it): `list()` returns records newest-first by `createdAt`, most recently * CREATED first on ties (updates do not reposition a record, matching a * Postgres `ORDER BY created_at DESC` with a stable tiebreak). This mirrors * the ordering the store block's adapter is being built with, so block unit * tests behave like their integration fixtures. Do not depend on ordering * across arbitrary StoreAdapters until the contract pins it. */ export interface MemoryStoreAdapterOptions { /** Deterministic clock for test assertions. */ timestamp?: () => string; } export declare function memoryStoreAdapter(options?: MemoryStoreAdapterOptions): StoreAdapter & { ensureSchema(): Promise; };