import { h as TraceEvent } from './types-bwL8cBv5.cjs'; import './log-config-CyRGaaWd.cjs'; import './inspect-event-ClM5Z8om.cjs'; type DiffSeverity = "info" | "warning" | "error"; type DiffKind = "run-status" | "structure" | "step-added" | "step-removed" | "step-status" | "step-type" | "duration" | "error" | "metadata" | "output" | "first-divergence"; interface DiffPathSegment { index: number; name: string; stepId?: string; } interface DiffPath { path: DiffPathSegment[]; } interface RunDiffItem { kind: DiffKind; severity: DiffSeverity; message: string; path?: DiffPath; left?: unknown; right?: unknown; } interface StepComparable { id: string; name: string; type?: string; status?: string; durationMs?: number; error?: string; metadata?: Record; outputPreview?: unknown; children: StepComparable[]; } interface RunComparable { runId: string; name?: string; status?: string; durationMs?: number; steps: StepComparable[]; } interface RunDiffSummary { leftRunId: string; rightRunId: string; totalDifferences: number; errors: number; warnings: number; info: number; firstDivergence?: RunDiffItem; } interface RunDiffResult { summary: RunDiffSummary; differences: RunDiffItem[]; } interface DiffOptions { ignoreDuration?: boolean; durationThresholdMs?: number; focus?: "all" | "errors" | "structure" | "outputs"; check?: "all" | "structure" | "outputs" | "errors" | "timing"; } interface RenderDiffOptions { json?: boolean; verbose?: boolean; color?: boolean; } /** * Normalize v0.1 manual JSONL events into a comparable run tree. * Does not mutate input events. */ declare function manualTraceEventsToComparableRun(events: TraceEvent[]): RunComparable; declare function diffRuns(left: RunComparable, right: RunComparable, options?: DiffOptions): RunDiffResult; declare function renderRunDiff(result: RunDiffResult, options?: RenderDiffOptions): string; /** * @experimental Compare two v0.1 manual traces as normalized trees (read-only). * Subject to refinement before a future stability declaration. */ declare function diffTraceEvents(leftEvents: TraceEvent[], rightEvents: TraceEvent[], options?: DiffOptions): RunDiffResult; export { type DiffKind, type DiffOptions, type DiffPath, type DiffPathSegment, type DiffSeverity, type RenderDiffOptions, type RunComparable, type RunDiffItem, type RunDiffResult, type RunDiffSummary, type StepComparable, diffRuns, diffTraceEvents, manualTraceEventsToComparableRun, renderRunDiff };