import type { RunStreamEvent, StreamedRunResult } from '@openai/agents'; import type { UIMessageChunk } from 'ai'; export type AiSdkUiMessageStreamSource = StreamedRunResult | ReadableStream | AsyncIterable | { toStream: () => ReadableStream; }; export type AiSdkUiMessageStreamHeaders = Headers | Record | Array<[string, string]>; export type AiSdkUiMessageStreamResponseOptions = { headers?: AiSdkUiMessageStreamHeaders; status?: number; statusText?: string; }; /** * Creates a UI message stream compatible with the AI SDK data stream protocol. */ export declare function createAiSdkUiMessageStream(source: AiSdkUiMessageStreamSource): ReadableStream; /** * Creates a UI message stream Response compatible with the AI SDK data stream protocol. */ export declare function createAiSdkUiMessageStreamResponse(source: AiSdkUiMessageStreamSource, options?: AiSdkUiMessageStreamResponseOptions): Response;