/**
 * Server-Sent Events parser and terminal renderer for cloud task output.
 *
 * Used by `agents cloud logs -f` to stream live output from a running task
 * and by the post-dispatch follow mode to show progress inline.
 */
import type { CloudEvent } from './types.js';
/**
 * Parse a Server-Sent Events stream into CloudEvents.
 * Handles `event:`, `data:`, keepalive comments, and multi-line data.
 */
export declare function parseSSE(response: Response): AsyncIterable<CloudEvent>;
/**
 * Render a stream of CloudEvents to the terminal.
 * Returns the final status and summary when the stream ends.
 */
export declare function renderStream(events: AsyncIterable<CloudEvent>, options?: {
    json?: boolean;
}): Promise<{
    status: string;
    summary?: string;
    prUrl?: string;
}>;
