import { IChatModel } from "@empiricalrun/llm/chat"; import { CanonicalMessage, ChatStateError, ChatStateGeneric, PendingToolCall, ToolResult } from "@empiricalrun/shared-types/chat-agent"; export declare const CHAT_STATE_VERSIONS_MIGRATIONS_MAP: Record any>; export declare const LATEST_CHAT_STATE_VERSION = "0.1"; export declare const CHAT_STATE_PATH: string; export declare function chatStateFromModel({ chatModel, error, }: { chatModel: IChatModel; error: ChatStateError | null; }): { version: string; model: import("@empiricalrun/shared-types/chat-agent").SupportedChatModels; messages: T[]; askUserForInput: boolean; error: ChatStateError | null; }; export declare function getUsageSummary(chatState: ChatStateGeneric): string; export declare function loadChatState({ resetChat, }: { resetChat: boolean; }): ChatStateGeneric | undefined; export declare function saveToDisk(chatState: ChatStateGeneric): void; export declare function fetchToolCallFromId(toolCallId: String, messages: CanonicalMessage[]): { toolCallQueuedAt: Date | undefined; toolCall: PendingToolCall | undefined; toolResult: ToolResult | undefined; }; //# sourceMappingURL=state.d.ts.map