import { z } from 'zod'; export type ToolCallEventType = 'TOOL_CALL_START' | 'TOOL_CALL_ARGS' | 'TOOL_CALL_END' | 'TOOL_CALL_CHUNK' | 'TOOL_CALL_RESULT'; export declare enum EventType { TEXT_MESSAGE_START = "TEXT_MESSAGE_START", TEXT_MESSAGE_CONTENT = "TEXT_MESSAGE_CONTENT", TEXT_MESSAGE_END = "TEXT_MESSAGE_END", TEXT_MESSAGE_CHUNK = "TEXT_MESSAGE_CHUNK", THINKING_TEXT_MESSAGE_START = "THINKING_TEXT_MESSAGE_START", THINKING_TEXT_MESSAGE_CONTENT = "THINKING_TEXT_MESSAGE_CONTENT", THINKING_TEXT_MESSAGE_END = "THINKING_TEXT_MESSAGE_END", THINKING_START = "THINKING_START", THINKING_END = "THINKING_END", TOOL_CALL_START = "TOOL_CALL_START", TOOL_CALL_ARGS = "TOOL_CALL_ARGS", TOOL_CALL_END = "TOOL_CALL_END", TOOL_CALL_CHUNK = "TOOL_CALL_CHUNK", TOOL_CALL_RESULT = "TOOL_CALL_RESULT", STATE_SNAPSHOT = "STATE_SNAPSHOT", STATE_DELTA = "STATE_DELTA", MESSAGES_SNAPSHOT = "MESSAGES_SNAPSHOT", RAW = "RAW", CUSTOM = "CUSTOM", RUN_STARTED = "RUN_STARTED", RUN_FINISHED = "RUN_FINISHED", RUN_ERROR = "RUN_ERROR", STEP_STARTED = "STEP_STARTED", STEP_FINISHED = "STEP_FINISHED" } /** * 检查事件类型是否为文本消息相关 * @param eventType 事件类型 * @returns 是否为文本消息事件 */ export declare function isTextMessageEvent(eventType: string): boolean; /** * 检查事件类型是否为思考相关 * @param eventType 事件类型 * @returns 是否为思考事件 */ export declare function isThinkingEvent(eventType: string): boolean; /** * 检查事件类型是否为工具调用相关 * @param eventType 事件类型 * @returns 是否为工具调用事件 */ export declare function isToolCallEvent(eventType: string): boolean; /** * 检查事件类型是否为状态相关 * @param eventType 事件类型 * @returns 是否为状态事件 */ export declare function isStateEvent(eventType: string): boolean; declare const BaseEventSchema: z.ZodObject<{ type: z.ZodNativeEnum; timestamp: z.ZodOptional; rawEvent: z.ZodOptional; }, "strip", z.ZodTypeAny, { type?: EventType; timestamp?: number; rawEvent?: any; }, { type?: EventType; timestamp?: number; rawEvent?: any; }>; export declare const TextMessageStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"assistant">; }, "strip", z.ZodTypeAny, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; messageId?: string; }, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; messageId?: string; }>; export declare const TextMessageContentEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodEffects; }, "strip", z.ZodTypeAny, { type?: EventType.TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }, { type?: EventType.TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }>; export declare const TextMessageEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; messageId?: string; }, { type?: EventType.TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; messageId?: string; }>; export declare const TextMessageChunkEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional>; delta: z.ZodOptional; }, "strip", z.ZodTypeAny, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_CHUNK; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_CHUNK; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }>; export declare const ThinkingTextMessageStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type?: EventType.THINKING_TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; }, { type?: EventType.THINKING_TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; }>; export declare const ThinkingTextMessageContentEventSchema: z.ZodObject; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodEffects; }, "type" | "messageId"> & { type: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type?: EventType.THINKING_TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; delta?: string; }, { type?: EventType.THINKING_TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; delta?: string; }>; export declare const ThinkingTextMessageEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type?: EventType.THINKING_TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; }, { type?: EventType.THINKING_TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; }>; export declare const ToolCallStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_START; timestamp?: number; toolCallId?: string; rawEvent?: any; toolCallName?: string; parentMessageId?: string; }, { type?: EventType.TOOL_CALL_START; timestamp?: number; toolCallId?: string; rawEvent?: any; toolCallName?: string; parentMessageId?: string; }>; export declare const ToolCallArgsEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_ARGS; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; }, { type?: EventType.TOOL_CALL_ARGS; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; }>; export declare const ToolCallEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_END; timestamp?: number; toolCallId?: string; rawEvent?: any; }, { type?: EventType.TOOL_CALL_END; timestamp?: number; toolCallId?: string; rawEvent?: any; }>; export declare const ToolCallResultEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, "strip", z.ZodTypeAny, { content?: string; role?: "tool"; type?: EventType.TOOL_CALL_RESULT; timestamp?: number; toolCallId?: string; rawEvent?: any; messageId?: string; toolCallName?: string; }, { content?: string; role?: "tool"; type?: EventType.TOOL_CALL_RESULT; timestamp?: number; toolCallId?: string; rawEvent?: any; messageId?: string; toolCallName?: string; }>; export declare const ToolCallChunkEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_CHUNK; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; toolCallName?: string; parentMessageId?: string; }, { type?: EventType.TOOL_CALL_CHUNK; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; toolCallName?: string; parentMessageId?: string; }>; export declare const ThinkingStartEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, "strip", z.ZodTypeAny, { title?: string; type?: EventType.THINKING_START; timestamp?: number; rawEvent?: any; }, { title?: string; type?: EventType.THINKING_START; timestamp?: number; rawEvent?: any; }>; export declare const ThinkingEndEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; title: z.ZodOptional; }, "strip", z.ZodTypeAny, { title?: string; type?: EventType.THINKING_END; timestamp?: number; rawEvent?: any; }, { title?: string; type?: EventType.THINKING_END; timestamp?: number; rawEvent?: any; }>; export declare const StateSnapshotEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, "strip", z.ZodTypeAny, { type?: EventType.STATE_SNAPSHOT; timestamp?: number; rawEvent?: any; snapshot?: any; }, { type?: EventType.STATE_SNAPSHOT; timestamp?: number; rawEvent?: any; snapshot?: any; }>; export declare const StateDeltaEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, "strip", z.ZodTypeAny, { type?: EventType.STATE_DELTA; timestamp?: number; rawEvent?: any; delta?: any[]; }, { type?: EventType.STATE_DELTA; timestamp?: number; rawEvent?: any; delta?: any[]; }>; export declare const MessagesSnapshotEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; }, { id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; }, { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; reasoningContent: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name?: string; arguments?: string; }, { name?: string; arguments?: string; }>; }, "strip", z.ZodTypeAny, { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }, { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }>, "many">>; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; }, { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; }, { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; role?: "tool"; toolCallId?: string; }, { id?: string; content?: string; role?: "tool"; toolCallId?: string; }>]>, "many">; }, "strip", z.ZodTypeAny, { type?: EventType.MESSAGES_SNAPSHOT; timestamp?: number; messages?: ({ id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; } | { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; } | { id?: string; content?: string; role?: "tool"; toolCallId?: string; })[]; rawEvent?: any; }, { type?: EventType.MESSAGES_SNAPSHOT; timestamp?: number; messages?: ({ id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; } | { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; } | { id?: string; content?: string; role?: "tool"; toolCallId?: string; })[]; rawEvent?: any; }>; export declare const RawEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, "strip", z.ZodTypeAny, { source?: string; type?: EventType.RAW; timestamp?: number; rawEvent?: any; event?: any; }, { source?: string; type?: EventType.RAW; timestamp?: number; rawEvent?: any; event?: any; }>; export declare const CustomEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, "strip", z.ZodTypeAny, { name?: string; type?: EventType.CUSTOM; value?: any; timestamp?: number; rawEvent?: any; }, { name?: string; type?: EventType.CUSTOM; value?: any; timestamp?: number; rawEvent?: any; }>; export declare const RunStartedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.RUN_STARTED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }, { type?: EventType.RUN_STARTED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }>; export declare const RunFinishedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; }, "strip", z.ZodTypeAny, { result?: any; type?: EventType.RUN_FINISHED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }, { result?: any; type?: EventType.RUN_FINISHED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }>; export declare const RunErrorEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, "strip", z.ZodTypeAny, { code?: string; type?: EventType.RUN_ERROR; message?: string; timestamp?: number; rawEvent?: any; }, { code?: string; type?: EventType.RUN_ERROR; message?: string; timestamp?: number; rawEvent?: any; }>; export declare const StepStartedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.STEP_STARTED; timestamp?: number; rawEvent?: any; stepName?: string; }, { type?: EventType.STEP_STARTED; timestamp?: number; rawEvent?: any; stepName?: string; }>; export declare const StepFinishedEventSchema: z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.STEP_FINISHED; timestamp?: number; rawEvent?: any; stepName?: string; }, { type?: EventType.STEP_FINISHED; timestamp?: number; rawEvent?: any; stepName?: string; }>; export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; role: z.ZodLiteral<"assistant">; }, "strip", z.ZodTypeAny, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; messageId?: string; }, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; messageId?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodEffects; }, "strip", z.ZodTypeAny, { type?: EventType.TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }, { type?: EventType.TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; messageId?: string; }, { type?: EventType.TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; messageId?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodOptional; role: z.ZodOptional>; delta: z.ZodOptional; }, "strip", z.ZodTypeAny, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_CHUNK; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }, { role?: "assistant"; type?: EventType.TEXT_MESSAGE_CHUNK; timestamp?: number; rawEvent?: any; messageId?: string; delta?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type?: EventType.THINKING_TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; }, { type?: EventType.THINKING_TEXT_MESSAGE_START; timestamp?: number; rawEvent?: any; }>, z.ZodObject; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messageId: z.ZodString; delta: z.ZodEffects; }, "type" | "messageId"> & { type: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type?: EventType.THINKING_TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; delta?: string; }, { type?: EventType.THINKING_TEXT_MESSAGE_CONTENT; timestamp?: number; rawEvent?: any; delta?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type?: EventType.THINKING_TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; }, { type?: EventType.THINKING_TEXT_MESSAGE_END; timestamp?: number; rawEvent?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; parentMessageId: z.ZodOptional; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_START; timestamp?: number; toolCallId?: string; rawEvent?: any; toolCallName?: string; parentMessageId?: string; }, { type?: EventType.TOOL_CALL_START; timestamp?: number; toolCallId?: string; rawEvent?: any; toolCallName?: string; parentMessageId?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; delta: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_ARGS; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; }, { type?: EventType.TOOL_CALL_ARGS; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_END; timestamp?: number; toolCallId?: string; rawEvent?: any; }, { type?: EventType.TOOL_CALL_END; timestamp?: number; toolCallId?: string; rawEvent?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; toolCallId: z.ZodOptional; toolCallName: z.ZodOptional; parentMessageId: z.ZodOptional; delta: z.ZodOptional; }, "strip", z.ZodTypeAny, { type?: EventType.TOOL_CALL_CHUNK; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; toolCallName?: string; parentMessageId?: string; }, { type?: EventType.TOOL_CALL_CHUNK; timestamp?: number; toolCallId?: string; rawEvent?: any; delta?: string; toolCallName?: string; parentMessageId?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { messageId: z.ZodString; type: z.ZodLiteral; toolCallId: z.ZodString; toolCallName: z.ZodString; content: z.ZodString; role: z.ZodOptional>; }, "strip", z.ZodTypeAny, { content?: string; role?: "tool"; type?: EventType.TOOL_CALL_RESULT; timestamp?: number; toolCallId?: string; rawEvent?: any; messageId?: string; toolCallName?: string; }, { content?: string; role?: "tool"; type?: EventType.TOOL_CALL_RESULT; timestamp?: number; toolCallId?: string; rawEvent?: any; messageId?: string; toolCallName?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; snapshot: z.ZodAny; }, "strip", z.ZodTypeAny, { type?: EventType.STATE_SNAPSHOT; timestamp?: number; rawEvent?: any; snapshot?: any; }, { type?: EventType.STATE_SNAPSHOT; timestamp?: number; rawEvent?: any; snapshot?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; delta: z.ZodArray; }, "strip", z.ZodTypeAny, { type?: EventType.STATE_DELTA; timestamp?: number; rawEvent?: any; delta?: any[]; }, { type?: EventType.STATE_DELTA; timestamp?: number; rawEvent?: any; delta?: any[]; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; messages: z.ZodArray; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"developer">; content: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; }, { id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; }, { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"assistant">; content: z.ZodOptional; reasoningContent: z.ZodOptional; toolCalls: z.ZodOptional; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, "strip", z.ZodTypeAny, { name?: string; arguments?: string; }, { name?: string; arguments?: string; }>; }, "strip", z.ZodTypeAny, { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }, { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }>, "many">>; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; }, { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; }>, z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; timestamp: z.ZodOptional; } & { role: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; }, { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; }>, z.ZodObject<{ id: z.ZodString; content: z.ZodString; role: z.ZodLiteral<"tool">; toolCallId: z.ZodString; }, "strip", z.ZodTypeAny, { id?: string; content?: string; role?: "tool"; toolCallId?: string; }, { id?: string; content?: string; role?: "tool"; toolCallId?: string; }>]>, "many">; }, "strip", z.ZodTypeAny, { type?: EventType.MESSAGES_SNAPSHOT; timestamp?: number; messages?: ({ id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; } | { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; } | { id?: string; content?: string; role?: "tool"; toolCallId?: string; })[]; rawEvent?: any; }, { type?: EventType.MESSAGES_SNAPSHOT; timestamp?: number; messages?: ({ id?: string; content?: string; name?: string; role?: "developer"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "system"; timestamp?: number; } | { id?: string; content?: string; name?: string; role?: "assistant"; timestamp?: number; reasoningContent?: string; toolCalls?: { function?: { name?: string; arguments?: string; }; id?: string; type?: "function"; }[]; } | { id?: string; content?: string; name?: string; role?: "user"; timestamp?: number; } | { id?: string; content?: string; role?: "tool"; toolCallId?: string; })[]; rawEvent?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; event: z.ZodAny; source: z.ZodOptional; }, "strip", z.ZodTypeAny, { source?: string; type?: EventType.RAW; timestamp?: number; rawEvent?: any; event?: any; }, { source?: string; type?: EventType.RAW; timestamp?: number; rawEvent?: any; event?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; name: z.ZodString; value: z.ZodAny; }, "strip", z.ZodTypeAny, { name?: string; type?: EventType.CUSTOM; value?: any; timestamp?: number; rawEvent?: any; }, { name?: string; type?: EventType.CUSTOM; value?: any; timestamp?: number; rawEvent?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.RUN_STARTED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }, { type?: EventType.RUN_STARTED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; threadId: z.ZodString; runId: z.ZodString; result: z.ZodOptional; }, "strip", z.ZodTypeAny, { result?: any; type?: EventType.RUN_FINISHED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }, { result?: any; type?: EventType.RUN_FINISHED; timestamp?: number; threadId?: string; runId?: string; rawEvent?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; message: z.ZodString; code: z.ZodOptional; }, "strip", z.ZodTypeAny, { code?: string; type?: EventType.RUN_ERROR; message?: string; timestamp?: number; rawEvent?: any; }, { code?: string; type?: EventType.RUN_ERROR; message?: string; timestamp?: number; rawEvent?: any; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.STEP_STARTED; timestamp?: number; rawEvent?: any; stepName?: string; }, { type?: EventType.STEP_STARTED; timestamp?: number; rawEvent?: any; stepName?: string; }>, z.ZodObject<{ timestamp: z.ZodOptional; rawEvent: z.ZodOptional; } & { type: z.ZodLiteral; stepName: z.ZodString; }, "strip", z.ZodTypeAny, { type?: EventType.STEP_FINISHED; timestamp?: number; rawEvent?: any; stepName?: string; }, { type?: EventType.STEP_FINISHED; timestamp?: number; rawEvent?: any; stepName?: string; }>]>; export type BaseEvent = z.infer; export type TextMessageStartEvent = z.infer; export type TextMessageContentEvent = z.infer; export type TextMessageEndEvent = z.infer; export type TextMessageChunkEvent = z.infer; export type ThinkingTextMessageStartEvent = z.infer; export type ThinkingTextMessageContentEvent = z.infer; export type ThinkingTextMessageEndEvent = z.infer; export type ToolCallStartEvent = z.infer; export type ToolCallArgsEvent = z.infer; export type ToolCallEndEvent = z.infer; export type ToolCallChunkEvent = z.infer; export type ToolCallResultEvent = z.infer; export type ThinkingStartEvent = z.infer; export type ThinkingEndEvent = z.infer; export type StateSnapshotEvent = z.infer; export type StateDeltaEvent = z.infer; export type MessagesSnapshotEvent = z.infer; export type RawEvent = z.infer; export type CustomEvent = z.infer; export type RunStartedEvent = z.infer; export type RunFinishedEvent = z.infer; export type RunErrorEvent = z.infer; export type StepStartedEvent = z.infer; export type StepFinishedEvent = z.infer; export {};