import type { Pool as PoolType } from 'pg'; export interface DatabaseConfig { host?: string; port?: number; user?: string; password?: string; database?: string; connectionString?: string; } /** * Get or initialize the database pool */ export declare function getDatabase(): PoolType; /** * Initialize database with connection parameters */ export declare function setupDatabase(config?: DatabaseConfig): Promise; export declare function initializeDatabase(): Promise; export interface Conversation { id: string; parent_id: string | null; title: string; task_description: string; created_at: number; } export interface Message { id: string; conversation_id: string; prev_message_id: string | null; next_message_id: string | null; author: 'User' | 'Copilot'; payload: string; created_at: number; } export interface MessageInput { author: 'User' | 'Copilot'; payload: string; } //# sourceMappingURL=database.d.ts.map