import type { PipelineContext } from '../context.js';
/** Checkpoint WAL through rusqlite and close the native connection. */
export declare function closeNativeDb(ctx: PipelineContext, label: string): void;
/** Try to reopen the native connection for a given pipeline phase. */
export declare function reopenNativeDb(ctx: PipelineContext, label: string): void;
/** Close nativeDb and clear stale references in engineOpts. */
export declare function suspendNativeDb(ctx: PipelineContext, label: string): void;
/**
 * After native writes, reopen the JS db connection to get a fresh page cache.
 * Rusqlite WAL truncation invalidates better-sqlite3's internal WAL index,
 * causing SQLITE_CORRUPT on the next read (#715, #736).
 */
export declare function refreshJsDb(ctx: PipelineContext): void;
//# sourceMappingURL=native-db-lifecycle.d.ts.map