import { SqliteAdapter } from "./sqlite-adapter.js"; export type Database = SqliteAdapter; /** Apply the schema (idempotent) to a database connection. */ export declare function initSchema(db: SqliteAdapter): void; export declare function rebuildFtsTables(db: SqliteAdapter): void; /** Get the process-wide database singleton, creating + migrating it on first use. */ export declare function getDatabase(): SqliteAdapter; /** Close the singleton (next getDatabase() reopens). */ export declare function closeDatabase(): void; /** Reset the singleton — closes the current connection so the next getDatabase() reopens fresh. Used by tests with an in-memory DB. */ export declare function resetDatabase(): void; //# sourceMappingURL=database.d.ts.map