import { StreamCallbacks } from '../types/agent.types'; /** * Process SSE stream from fetch response. * * Handles named events (event: + data:) and default message events (data: only). * Supported named events: * - event: thinking → ignored (future use) * - event: carousel → calls callbacks.onCarousel with parsed image array * - event: toolcall → calls callbacks.onToolCall with the label string * Special data values: * - [DONE] → calls onComplete and stops * - [CANCELLED] → calls onComplete and stops */ export declare function processSSEStream(response: Response, callbacks: StreamCallbacks): Promise; /** * Create an AbortController for canceling streams */ export declare function createStreamController(): { controller: AbortController; signal: AbortSignal; abort: () => void; };