/** AG-UI runtime event type constants normalized from legacy SSE event names. */ export declare const agUiSseEventTypes: { readonly custom: "CUSTOM"; readonly textMessageStart: "TEXT_MESSAGE_START"; readonly textMessageContent: "TEXT_MESSAGE_CONTENT"; readonly textMessageEnd: "TEXT_MESSAGE_END"; readonly reasoningMessageStart: "REASONING_MESSAGE_START"; readonly reasoningMessageContent: "REASONING_MESSAGE_CONTENT"; readonly reasoningMessageEnd: "REASONING_MESSAGE_END"; readonly toolCallStart: "TOOL_CALL_START"; readonly toolCallArgs: "TOOL_CALL_ARGS"; readonly toolCallEnd: "TOOL_CALL_END"; readonly toolCallResult: "TOOL_CALL_RESULT"; readonly runStarted: "RUN_STARTED"; readonly stateSnapshot: "STATE_SNAPSHOT"; readonly messagesSnapshot: "MESSAGES_SNAPSHOT"; readonly stepStarted: "STEP_STARTED"; readonly stepFinished: "STEP_FINISHED"; readonly runError: "RUN_ERROR"; readonly runFinished: "RUN_FINISHED"; }; /** Normalized AG-UI runtime event type value. */ export type AgUiSseEventType = (typeof agUiSseEventTypes)[keyof typeof agUiSseEventTypes]; /** Parsed AG-UI SSE response summary for evals, canaries, and host tests. */ export interface ParsedAgUiSseRun { responseStatus: number; events: Array>; eventTypes: string[]; toolStarts: string[]; toolArgs: string[]; text: string; runError: string | null; } /** Progress snapshot emitted while parsing an AG-UI SSE response. */ export interface AgUiSseProgressSnapshot { eventCount: number; lastEventType: string | null; lastToolCallName: string | null; toolStarts: string[]; textLength: number; } /** Options for `parseAgUiSseResponse()`. */ export interface ParseAgUiSseResponseOptions { onProgress?: (snapshot: AgUiSseProgressSnapshot) => void; progressThrottleMs?: number; } /** Stringify an AG-UI SSE event or fallback value for diagnostics. */ export declare function stringifyAgUiSseEvent(value: unknown): string; /** Return a string field from a parsed AG-UI SSE event record. */ export declare function getAgUiSseStringField(record: Record, key: string): string | null; /** Filter parsed AG-UI SSE events by normalized event type. */ export declare function getAgUiSseEventsOfType(events: Array>, eventType: string): Array>; /** Build a compact ordered event-type signature for regression checks. */ export declare function buildAgUiSseTraceSignature(eventTypes: string[]): string; /** Parse an AG-UI SSE `Response` into normalized events, text, tool starts, and terminal error state. */ export declare function parseAgUiSseResponse(response: Response, options?: ParseAgUiSseResponseOptions): Promise; //# sourceMappingURL=sse-parser.d.ts.map