import { formatDuration, runElapsedMs } from "../render/format.js"; import type { LoadedRunBundle } from "../workflows/store.js"; import type { WorkflowRunStatus } from "../workflows/types.js"; export { formatDuration, runElapsedMs }; export type ViewportSize = { width: number; height: number; }; export declare function statusLabel(status: WorkflowRunStatus): string; /** One line per run for the run picker. */ export declare function renderRunListLines(bundles: LoadedRunBundle[], selectedIndex: number, size: ViewportSize, now?: Date): string[]; /** * Full-run detail view: header, graph pane, step timeline, inspector. * `scroll` shifts the viewport down over the full body; `selectedStepIndex` * scrubs the replay position (defaults to the latest step, i.e. live). */ export declare function renderRunDetailLines(bundle: LoadedRunBundle, size: ViewportSize, now?: Date, scroll?: number, selectedStepIndex?: number | null): string[]; /** Highest useful `scroll` value for the detail view of `bundle`. */ export declare function maxDetailScroll(bundle: LoadedRunBundle, size: ViewportSize, selectedStepIndex?: number | null): number;