import { type MaterializerAdapter, type MaterializerIdentity, type MaterializerSnapshot } from "./materializer.ts";
export { MemoryMaterializerAdapter } from "./materializer-memory.ts";
/** Desktop D11 supplies its SQL harness here; scenarios are imported, never copied.
 * Snapshot must read from outside the open transaction. Restart must reopen only committed state.
 */
export interface MaterializerHarness {
    readonly adapter: MaterializerAdapter<string>;
    snapshot(key: MaterializerIdentity): Promise<MaterializerSnapshot>;
    failApplyAt(index: number | undefined): void;
    crashBeforeCommit(): void;
    holdBeforeCommit(): {
        readonly entered: Promise<void>;
        release(): void;
    };
    restart(): Promise<MaterializerAdapter<string>>;
    dispose(): Promise<void>;
}
export interface MaterializerConformanceCase {
    readonly name: string;
    run(): Promise<void>;
}
type Factory = () => Promise<MaterializerHarness>;
/** RULING-99: connect twice to the engine; the second connection follows the first committed unit.
 * The caller owns disconnect/reconnect. A fresh consumer must not reset the adapter's stale-generation guard.
 */
export declare function materializerReconnect(adapter: MaterializerAdapter<string>, connect: () => Promise<MaterializerIdentity>): Promise<void>;
/** Runtime-neutral test kit: register each returned run with any runner, unchanged for every adapter. */
export declare function materializerConformance(create: Factory): readonly MaterializerConformanceCase[];
//# sourceMappingURL=materializer-test-kit.d.ts.map