/** * Unified Database Initialization Service * * Uses embedded storage by default (no Docker required). * Falls back gracefully and allows individual component server overrides. * * Storage Mode Priority: * 1. Environment variable: CODESEEKER_STORAGE_MODE * 2. Config file: ~/.codeseeker/storage.json * 3. Default: 'embedded' (SQLite + Graphology + LRU-cache) */ import { IDatabaseInitializer, SetupResult } from './interfaces/setup-interfaces'; import { StorageManager } from '../../../storage'; export declare class UnifiedDatabaseInitializer implements IDatabaseInitializer { private storageManager?; /** * Test if databases are available * For embedded mode, always returns true * For server mode, tests actual connections */ testConnections(): Promise<{ postgres: boolean; neo4j: boolean; redis: boolean; }>; /** * Test server connections (only used when explicitly in server mode) */ private testServerConnections; /** * Initialize PostgreSQL (or embedded vector store) */ initializePostgreSQL(): Promise; /** * Initialize Neo4j (or embedded graph store) */ initializeNeo4j(): Promise; /** * Initialize Redis (or embedded cache store) */ initializeRedis(): Promise; /** * Initialize all storage components */ initializeAll(): Promise<{ postgres: SetupResult; neo4j: SetupResult; redis: SetupResult; mode: 'embedded' | 'server'; }>; /** * Get the storage manager for direct access */ getStorageManager(): Promise; /** * Check if using embedded storage */ isEmbedded(): boolean; } export declare function createDatabaseInitializer(): UnifiedDatabaseInitializer; //# sourceMappingURL=unified-database-initializer.d.ts.map