import { default as Database } from 'better-sqlite3'; /** * Options for opening a database */ export interface DatabaseOptions { readonly?: boolean; create?: boolean; } /** * Open a .pkl database file * Handles initialization, migration, and validation */ export declare function openDatabase(filePath: string, options?: DatabaseOptions): Database.Database; /** * Close a database connection safely */ export declare function closeDatabase(db: Database.Database): void; /** * Execute a transaction with automatic rollback on error */ export declare function transaction(db: Database.Database, fn: () => T): T; //# sourceMappingURL=database.d.ts.map