/** * Conformance kit for `StateStore` implementations. D8. * * The in-memory store is the reference, but anyone writing a Redis, SQL, or KV * store has to reproduce behavior that is easy to get subtly wrong: and a store * that is subtly wrong produces a guard that is subtly wrong, silently, in * production. * * Shipping the contract as runnable assertions rather than prose means an * implementer can prove their store is usable instead of hoping. Framework-free * on purpose: it reports failures and lets the caller decide how to surface them, * so it works under `node:test`, a browser, or a bare script. */ import type { StateStore } from './store.ts'; export type ConformanceResult = { readonly name: string; readonly passed: boolean; readonly detail?: string; }; /** * Run every contract check against a store. * * `factory` must return an **empty** store each call: several checks would * otherwise interfere with each other, and a store that cannot be created empty * cannot be tested. */ export declare function checkStoreConformance(factory: () => StateStore | Promise): Promise; /** Convenience: throws with a readable summary if anything failed. */ export declare function assertConformant(results: readonly ConformanceResult[]): void; //# sourceMappingURL=conformance.d.ts.map