import type { EvalRecord } from "../eval/types.js"; import type { EventEnvelope } from "../statelog/wireTypes.js"; import type { Trace } from "./traces.js"; /** The eval record for one trace, computed on demand — it is a view of the * statelog for graders and judges, never a file. */ export declare function evalRecordFor(trace: Trace, sourcePath: string): EvalRecord; export type TraceEnding = "ok" | "error" | "unknown"; /** How a trace ended, read from its own events: an `agentEnd` carrying a * result is a clean finish; a result-less `agentEnd` after a `runtimeError` * is a crash; no `agentEnd` at all is unknown (killed, still running, or * captured mid-flight). The harness's `run` annotation, when present, knows * more than this. */ export declare function traceEnding(trace: { events: readonly EventEnvelope[]; }): TraceEnding;