import type { ChatMessage } from "./runtime/types.js"; interface SessionStoreFs { mkdir(path: string, options?: { recursive?: boolean; }): Promise; readFile(path: string, encoding: "utf8"): Promise; writeFile(path: string, content: string, options?: "utf8" | { encoding: "utf8"; flag?: string; }): Promise; } export interface PersistedAgentSession { version: 1; threadId: string; model: string; cwd: string; createdAt: string; updatedAt: string; messages: ChatMessage[]; } export interface AgentSessionStore { load(threadId: string): Promise; save(session: PersistedAgentSession): Promise; } export declare function createAgentSessionStore(options?: { homeDir?: string; fs?: SessionStoreFs; }): AgentSessionStore; export {};