import type { RunEvent } from "./agent/events.js"; /** One readable, ANSI-colored line for a run event, or null to skip it (streaming text/reasoning * deltas are buffered by the sink, not formatted here). Reads only a few fields off the SDK's typed * event and degrades gracefully on anything unexpected. */ export declare function formatRunEventLine(event: RunEvent): string | null; /** Build the {@link WorkerRunEventEmitter} local sink: append formatted lines to `path`, buffering * streaming agent text/reasoning into whole lines. Best-effort — a broken stream (full disk, closed * pipe) is swallowed and disables the sink; it never throws into the run. */ export declare function makeRunLogFileSink(path: string): (event: RunEvent) => void;