import { DatabaseSync } from "node:sqlite";
import type { MemoryContentCipher } from "./cipher.js";
export declare function preparedDatabase(target: string): DatabaseSync;
export declare function ensureDirHardened(dir: string): void;
export declare function chmodIfPresent(path: string, mode: number): void;
export interface SidecarSnapshot {
    readonly hadWal: boolean;
    readonly hadShm: boolean;
}
export declare function quarantineCorruptDb(target: string, snapshot?: SidecarSnapshot): void;
export declare function openMemoryDatabase(dbPath: string, cipher: MemoryContentCipher): DatabaseSync;
//# sourceMappingURL=db.d.ts.map