import type { Event, Phase } from '../events/schema'; import type { RunRecord, RunStepSummary } from './types'; export type PhaseStatus = 'completed' | 'running' | 'blocked' | 'failed' | 'pending' | 'skipped'; export type PhaseTimelineEntry = { phase: Phase; startedAt?: string; finishedAt?: string; durationMs?: number; status: PhaseStatus; }; export type StepStatus = 'completed' | 'running' | 'failed' | 'pending' | 'skipped'; export type StepHistoryEntry = { stepId: string; title: string; status: StepStatus; startedAt?: string; finishedAt?: string; durationMs?: number; error?: string; }; export declare const PHASE_ORDER: Phase[]; export declare function buildPhaseTimeline(events: Event[], run: RunRecord, nowMs?: number): PhaseTimelineEntry[]; export declare function buildStepHistory(steps: RunStepSummary[] | undefined, events: Event[], nowMs?: number): StepHistoryEntry[];