/**
 * Workflow progress snapshot model + text renderers.
 *
 * The runtime emits per-event callbacks (`onPhase`, `onAgentStart`, `onAgentEnd`,
 * `onLog`). The workflow tool wraps those callbacks to mutate a snapshot and push
 * a text rendering through `onUpdate` — keeping TUI / Gateway / IM consumers in
 * lock-step from a single source of truth.
 */
import type { WorkflowMeta, WorkflowSnapshot } from './types.js';
export declare function createWorkflowSnapshot(meta: WorkflowMeta): WorkflowSnapshot;
export declare function recomputeCounts(snapshot: WorkflowSnapshot): void;
export interface RenderOptions {
    maxAgentsPerPhase?: number;
    maxLogs?: number;
    showResultPreviews?: boolean;
}
export declare function renderWorkflowText(snapshot: WorkflowSnapshot, completed?: boolean, options?: RenderOptions): string;
export declare function previewValue(value: unknown, max?: number): string;
