import { Project, Task, Agent } from '../types/index.js'; /** * Database Service for ControlAI MCP * * Now uses CBD (Codai Better Database) for consistency with MemorAI and ecosystem. * Maintains the same interface as the original SQLite implementation for compatibility. */ export declare class DatabaseService { private adapter; private isInitialized; constructor(cbdUrl?: string); initialize(): Promise; createProject(project: Omit): Promise; getProject(id: string): Promise; getAllProjects(): Promise; updateProject(id: string, updates: Partial): Promise; deleteProject(id: string): Promise; createTask(task: Omit): Promise; getTask(id: string): Promise; getTasksByProject(projectId: string): Promise; getAvailableTasks(): Promise; updateTask(id: string, updates: Partial): Promise; deleteTask(id: string): Promise; registerAgent(agent: Omit): Promise; getAgent(id: string): Promise; getAllAgents(): Promise; updateAgent(id: string, updates: Partial): Promise; deleteAgent(id: string): Promise; getWorkspaceMetrics(workspaceId: string): Promise; searchEntities(query: string, entityType?: string, limit?: number): Promise; healthCheck(): Promise<{ status: string; version: string; timestamp: string; }>; getStats(): Promise; close(): Promise; private ensureInitialized; /** * Get connection status and service information */ getConnectionInfo(): Promise<{ connected: boolean; service: string; backend: string; version: string; url: string; }>; /** * Test all database operations with sample data */ runIntegrationTest(): Promise<{ success: boolean; results: { [key: string]: boolean; }; errors: { [key: string]: string; }; }>; } //# sourceMappingURL=DatabaseService.d.ts.map