/** * Database System using sql.js (WASM SQLite) * Pure JavaScript implementation with NO build dependencies * * SECURITY: Fixed SQL injection vulnerabilities: * - PRAGMA commands validated against whitelist * - Removed eval() usage (replaced with async import) */ /** * Get sql.js database implementation (ONLY sql.js, no better-sqlite3) */ export declare function getDatabaseImplementation(): Promise; /** * Create a database instance using sql.js */ export declare function createDatabase(filename: string, options?: unknown): Promise; /** * Wrap an EXISTING sql.js raw database with the better-sqlite3-compatible API. * Used by AgentDB unified mode to share one sql.js Database instance for both * vector (rvf) and relational tables in a single .rvf file. * * Unlike createDatabase(), this does NOT create a new SQL.Database — it wraps * the one already held by SqlJsRvfBackend. */ export declare function wrapExistingSqlJsDatabase(rawDb: any, filename?: string): any; /** * Get information about current database implementation */ export declare function getDatabaseInfo(): { implementation: string; isNative: boolean; performance: 'high' | 'medium' | 'low'; requiresBuildTools: boolean; }; //# sourceMappingURL=db-fallback.d.ts.map