import type { DataStoreLockContext, DatastoreCloseResult, SqliteBackendHandle } from '../data-store.js'; /** Minimal native lifecycle surface, separated so close faults are unit-testable. */ export interface SqliteLifecycleConnection { readonly open: boolean; pragma(source: string): unknown; close(): void; } /** A failed or unreadable native state probe is not closure evidence. */ export declare function sqliteConnectionProvenClosed(sqlite: SqliteLifecycleConnection): boolean; /** * Fold WAL contents into the main SQLite file and always attempt native close. * * This helper is shared by ordinary backend shutdown and explicit file * checkpointing so their WAL/close semantics cannot drift. */ export declare function checkpointAndCloseSqlite(sqlite: SqliteLifecycleConnection): DatastoreCloseResult; export declare function buildSqliteDataStore(dbPath: string, lock?: DataStoreLockContext): SqliteBackendHandle; //# sourceMappingURL=shared.d.ts.map