import type { Id, ConversationDoc, MessageDoc, AttachmentDoc, StateSnapshot, AgSpecEventPayloads, AgSpecEventType } from '../types'; import type { AgentStateMap } from '../types/state'; interface ToolCallInProgress { id: string; name: string; args: string; messageId: string; } export interface ChatState { sessionId?: string; revision: string; conversations: Record; messages: Record; attachments: Record; messagesByConversation: Record; streaming: Record; toolCallsInProgress: Record; activeConversationId?: Id; agentStateByConversation: AgentStateMap; } export declare function initStateFromSnapshot(snap: StateSnapshot): ChatState; export declare function toSnapshot(state: ChatState): StateSnapshot; export declare function applyNormalizedEvent(state: ChatState, type: string, payload: any): ChatState; export declare function applySpecEvent(state: ChatState, type: AgSpecEventType, payload: AgSpecEventPayloads[AgSpecEventType]): ChatState; export {}; //# sourceMappingURL=state.d.ts.map