import type { AgentEvent } from "../agent/events.js"; import type { TurnOutcome } from "../agent/turn-outcome.js"; import { type StreamVerbosity } from "./stream-blocks.js"; export interface StreamRendererOptions { readonly out: NodeJS.WritableStream; readonly err: NodeJS.WritableStream; readonly columns: number; readonly color: boolean; readonly unicode: boolean; readonly verbosity: StreamVerbosity; readonly showThinking: boolean; } export declare class StreamRenderer { private readonly options; private readonly clock; private readonly ctx; private readonly spinner; private readonly tools; private readonly startedAt; private label; private lastAnswer; private finished; constructor(options: StreamRendererOptions, clock?: () => number); handle(event: AgentEvent): void; finish(outcome: TurnOutcome): void; private toolResultLines; private spin; private writeOut; private writeErr; }