import { ChatSession, ChatHistoryOptions, ChatMessage, HistoryStats } from '../shared/types.js'; declare class DatabaseAdapter { #private; constructor(); ensureDatabaseInitialized(): Promise; createSession(profile: string, title?: string, type?: 'ask' | 'chat' | 'exec'): Promise; getSession(sessionId: string): Promise; getSessions(options?: ChatHistoryOptions): Promise; deleteSession(sessionId: string): Promise; updateSessionTitle(sessionId: string, title: string): Promise; addMessage(sessionId: string, role: 'user' | 'assistant' | 'system', content: string, provider: string, model: string, temperature?: number, maxTokens?: number, metadata?: any): Promise; getMessages(sessionId: string, limit?: number): Promise; searchMessages(options?: ChatHistoryOptions): Promise; getStats(profile?: string): Promise; deleteOldSessions(profile: string, days: number): Promise; vacuum(): Promise; exportChatHistory(options?: ChatHistoryOptions): Promise<{ sessions: ChatSession[]; messages: Record; stats: HistoryStats; }>; private ensureActTemplatesTable; createActTemplate(template: { id: string; label: string; category: string; description: string; template: string; }): Promise; updateActTemplate(id: string, updates: Partial<{ label: string; category: string; description: string; template: string; }>): Promise; deleteActTemplate(id: string): Promise; getActTemplate(id: string): Promise; listActTemplates(customOnly?: boolean): Promise; templateExists(id: string): Promise; close(): Promise; } export { DatabaseAdapter };