import type { HarnessStreamPart } from '@ariaflowagents/core'; import type { StreamAdapterConfig } from './types.js'; /** * Convert AriaFlow's HarnessStreamPart generator into an SSE Response * that CF's AIChatAgent._reply() can parse. * * CF's _streamSSEReply reads lines in the format: * data: {"type":"text-start"}\n\n * data: {"type":"text-delta","delta":"Hello"}\n\n * data: {"type":"tool-input-available","toolCallId":"...","toolName":"...","input":{...}}\n\n * data: {"type":"tool-output-available","toolCallId":"...","output":{...}}\n\n * data: {"type":"data-handoff","data":{...}}\n\n * data: {"type":"text-end"}\n\n * * CF's applyChunkToParts() then builds UIMessage parts from these chunks. * CF handles persistence, broadcasting, and resumability. */ export declare function createSSEResponse(stream: AsyncGenerator, config?: StreamAdapterConfig): Response;