/** * Server-Sent Events (SSE) client utility * * Handles POST-based SSE connections for streaming execution and generation updates. * Uses fetch with streaming response body parsing. */ export interface SSEConnectionHandlers { onMessage: (event: T) => void; onError: (error: Error) => void; onClose: () => void; } export interface SSEConnection { abort: () => void; } /** * Create an SSE connection using POST request with JSON body. * * SSE typically uses GET, but we need POST to send workflow data. * This implements manual SSE parsing over a fetch streaming response. */ export declare function createSSEConnection(url: string, body: unknown, handlers: SSEConnectionHandlers): SSEConnection;