/** * Dependency-free database runtime facts. Kept out of `./client.js` so the * store runner does not require every `vi.mock("../db/client.js")` to stub them. */ export declare function retryOnDdlRace(fn: () => Promise): Promise; /** * Bumped by `closeDbExec()` and dev reloads. State cached per database (schema * snapshots, store readiness) compares against it instead of importing the * client, so modules that mock `./client.js` keep working. */ export declare function dbClientGeneration(): number; /** * True while a store migration runs that the ledger will record once it * resolves. Helpers that swallow failures elsewhere must rethrow here, or the * ledger records a step that never happened and never retries it. */ export declare function isRecordingStoreMigration(): boolean; export declare function runRecordingStoreMigration(run: () => Promise): Promise;