/** * SQLite access for the docs index and the request queue. * * This uses Node's built-in `node:sqlite`, not a native addon. An addon is built * for one Node ABI, and `npx` shares its cache between Node versions: a copy * installed under Node 22 failed to load under Node 24. The built-in module * always matches the Node running it. */ import { DatabaseSync } from "node:sqlite"; export type Database = DatabaseSync; /** Open a database file, or ":memory:". A read-only open fails when the file does not exist. */ export declare function openDatabase(path: string, options?: { readonly?: boolean; }): Database; /** Run `work` inside one transaction, rolling back if it throws. */ export declare function transaction(db: Database, work: () => T): T; /** The first column of a pragma's first row, such as "ok" from quick_check. */ export declare function pragmaValue(db: Database, pragma: string): unknown;