import { AgentChat, AgentMessage } from '../types';

declare class ChatStorage {
    private db;
    private initPromise;
    private init;
    private normalizeStoredChat;
    saveChat(chat: AgentChat): Promise<void>;
    getChat(chatId: string): Promise<AgentChat | null>;
    listChats(filter?: {
        contextKey?: string;
        userId?: string;
        multiUser?: boolean;
    }): Promise<AgentChat[]>;
    deleteChat(chatId: string): Promise<void>;
    clearAll(): Promise<void>;
    getMessages(chatId: string): Promise<AgentMessage[]>;
    saveMessages(chatId: string, messages: AgentMessage[]): Promise<void>;
    appendMessages(chatId: string, toAppend: AgentMessage[]): Promise<void>;
}
export declare const chatStorage: ChatStorage;
export {};
//# sourceMappingURL=ChatStorage.d.ts.map