/** * Turns newly-correlated spans into append-only status lines for `workflow * monitor`. Unlike the waterfall (which needs the full span set up front to * lay out a time axis), a live monitor just reports each span's status * transitions as they're observed on each poll. */ import type { Span, SpanStatus } from '#services/workflow_history/correlator.js'; export interface SpanUpdate { span: Span; label: string; } /** * Returns spans whose status changed since the last call. `seen` is mutated * in place so callers can carry it across polls. Pending spans are skipped — * nothing worth reporting until a step starts. */ export declare function diffSpanUpdates(spans: Span[], labels: Map, seen: Map): SpanUpdate[]; /** Formats the continue-as-new transition line, keeping its glyph in the formatting layer. */ export declare function formatContinuedAsNew(runId: string): string; export declare function formatSpanUpdate(update: SpanUpdate, color: boolean): string;