import type { Readable } from 'node:stream';
export interface SSEMessage {
    event: string;
    data: string;
    id?: string;
    retry?: number;
}
/**
 * Parse a Readable carrying Server-Sent Events into structured messages.
 *
 * Yields one `SSEMessage` per blank-line-terminated record. Handles split data: lines,
 * CRLF or LF line endings, and arbitrary chunk boundaries — the underlying Node http
 * Readable does not guarantee chunks align with SSE record boundaries.
 */
export declare function parseSSE(stream: Readable): AsyncGenerator<SSEMessage>;
interface RenderState {
    currentPhase?: string;
}
/**
 * Render SSE deploy events as terse, line-oriented progress to stderr (so stdout stays
 * reserved for the final JSON/YAML response document). Phase transitions print once.
 */
export declare function renderDeployProgress(message: SSEMessage, state: RenderState, output: NodeJS.WritableStream): void;
export {};
