import type { WorkflowProgressData, WorkflowTraceEvent, WorkflowUpdateRecord } from "./types.js"; export type ProgressConfidence = "low" | "medium" | "high"; export type ProgressEstimate = { key: string; data: WorkflowProgressData; sampleCount: number; delta?: number; rateLow?: number; rateMedian?: number; rateHigh?: number; remainingLowMs?: number; remainingMedianMs?: number; remainingHighMs?: number; confidence?: ProgressConfidence; sourceEstimatedFinishAt?: string; unavailableReason?: string; elapsedMs?: number; }; export type ProgressSample = { at: string; data: WorkflowProgressData; }; export type ProgressTrackState = { key: string; samples: ProgressSample[]; estimate: ProgressEstimate; }; export declare function estimateProgress(key: string, samples: ProgressSample[], now?: Date): ProgressEstimate; export declare function progressRecordsFromTrace(events: WorkflowTraceEvent[]): WorkflowUpdateRecord[]; export declare function appendProgressHistory(history: WorkflowUpdateRecord[], additions: WorkflowUpdateRecord[], maxPerTrack?: number, maxRecords?: number): WorkflowUpdateRecord[]; export declare function progressTracksFromRecords(records: WorkflowUpdateRecord[], now?: Date): ProgressTrackState[]; export declare function formatProgressLine(estimate: ProgressEstimate, now?: Date): string; export declare function formatProgressReport(estimates: ProgressEstimate[], nextCheckMinutes?: number, now?: Date, maxChars?: number): string; export declare function formatRemaining(ms: number): string; export declare function prioritizeProgressEstimates(estimates: ProgressEstimate[]): ProgressEstimate[];