export interface Message { role: "user" | "assistant"; content: string; timestamp: number; } export interface Session { id: string; chatId: string; workDir: string; messages: Message[]; createdAt: number; updatedAt: number; } export declare function createSession(chatId: string, workDir: string): Session; export declare function getOrCreateSession(chatId: string, workDir?: string): Session; export declare function getSession(sessionId: string): Session | null; export declare function getSessionByChatId(chatId: string): Session | null; export declare function saveSession(session: Session): void; export declare function addMessage(session: Session, role: "user" | "assistant", content: string): void; export declare function clearSession(sessionId: string): void; export declare function clearAllSessions(): void; export declare function listSessions(): Session[]; export declare function setWorkDir(session: Session, workDir: string): void; //# sourceMappingURL=store.d.ts.map