/** * The run-event fold: turn a persisted run log into a `RunProjection`. * * @module @nhtio/adk/batteries/orchestration/runs */ import type { RunEvent, RunProjection } from "./types"; /** * Fold a sequence of run events into a single {@link RunProjection}. * * The projection is derived entirely from the events themselves — no graph, no store, and no * side channel. It is deterministic and total: the same event list always folds to the same * projection. * * @param events - The ordered run events to fold. * @returns The projected state of the run. * @throws If the first event is not `run_started` (a malformed event list). */ export declare function foldRun(events: RunEvent[]): RunProjection;