/**
 * SSE：把 AsyncGenerator chunk 写成 text/event-stream Response
 */
export declare function sseResponse(stream: AsyncGenerator<{
    type: string;
    text?: string;
    data?: Record<string, unknown>;
    error?: {
        code: string;
        message: string;
    };
    [key: string]: unknown;
}>): Response;
