import Database from 'better-sqlite3'; import { RETENTION_CONFIG } from './schema.js'; /** * Get or create the database instance */ export declare function getDatabase(): Database.Database; /** * Initialize the database * - Creates data directory if missing * - Opens/creates database file * - Runs migrations * - Sets WAL mode for better performance */ export declare function initDatabase(dbPath?: string): Database.Database; /** * Create an in-memory database for testing */ export declare function initTestDatabase(): Database.Database; /** * Close the database connection */ export declare function closeDatabase(): void; /** * Get database statistics for debugging */ export declare function getDatabaseStats(): { sessions: number; }; export { RETENTION_CONFIG }; //# sourceMappingURL=index.d.ts.map