/** * Initialise a SQLite database at the given path. * Pass ":memory:" for an ephemeral in-memory database (useful for tests). * * On first call the function runs all migrations so every table is * guaranteed to exist when the returned handle is used. */ export declare function initDb(dbPath: string): any; /** Provenance reopen: never creates a database, migrates it, or changes WAL. */ export declare function openReadOnlyDb(dbPath: string): any; /** Close the database connection gracefully. */ export declare function closeDb(db: any): void;