import { Chat } from '../models'; import { s } from '../schema'; import { type ParserState } from '../skillet/parser/json-parser'; type ParserMap = Record; type CacheMap = Record; type ToolCallIndexMap = Record; export interface StreamingMessageState { message: Chat.Internal.AssistantMessage | null; toolCalls: Chat.Internal.ToolCall[]; rawToolCalls: Chat.Api.ToolCall[]; outputParserState?: ParserState; outputCache?: s.FromJsonAstCache; toolParserStateByIndex: ParserMap; toolCacheByIndex: CacheMap; toolCallIndexById: ToolCallIndexMap; configSnapshot?: { responseSchema?: s.HashbrownType; emulateStructuredOutput: boolean; toolsByName: Record; }; error?: Error; } export declare const initialState: StreamingMessageState; export declare const reducer: (state: StreamingMessageState | undefined, action: { type: string; }) => StreamingMessageState; export declare const selectRawStreamingMessage: (state: StreamingMessageState) => Chat.Internal.AssistantMessage | null; export declare const selectRawStreamingToolCalls: (state: StreamingMessageState) => Chat.Internal.ToolCall[]; export declare const selectStreamingMessageError: (state: StreamingMessageState) => Error | undefined; export declare const selectStreamingMessage: (state: StreamingMessageState) => Chat.Internal.AssistantMessage | null; export declare const selectStreamingToolCallEntities: (state: StreamingMessageState) => Record; export {}; //# sourceMappingURL=streaming-message.reducer.d.ts.map