/**
 * Conversation Storage Service
 * Provides persistent storage for AI conversations using lowdb
 */
interface Message {
    role: "user" | "assistant" | "system";
    content: string;
    timestamp?: string;
}
interface Conversation {
    id: string;
    title?: string;
    messages: Message[];
    metadata?: Record<string, any>;
    createdAt: string;
    updatedAt: string;
}
interface ConversationsDB {
    conversations: Record<string, Conversation>;
}
declare class ConversationStorage {
    private db;
    private initialized;
    initialize(): Promise<void>;
    getConversation(conversationId: string): Promise<Conversation | null>;
    saveConversation(conversationId: string, conversation: Partial<Conversation>): Promise<Conversation>;
    deleteConversation(conversationId: string): Promise<boolean>;
    getAllConversations(): Promise<Conversation[]>;
    getRecentConversations(limit?: number): Promise<Conversation[]>;
    addMessage(conversationId: string, message: Message): Promise<Conversation>;
    clearAllConversations(): Promise<void>;
    exportConversations(): Promise<ConversationsDB>;
    importConversations(data: ConversationsDB): Promise<void>;
    getConversationStats(): Promise<Record<string, any>>;
}
export declare function getConversationStorage(): ConversationStorage;
export default ConversationStorage;
//# sourceMappingURL=conversationStorage.d.ts.map