import type { EvalRunResult, Input, EvalRunInputResult } from "./runTypes.js"; export type EvalRunState = { runId: string; runDir: string; inputsDir: string; agent: string; inputsSource: string; continueOnError: boolean; }; export type PreparedInput = { input: Input; inputDir: string; inputJsonPath: string; statelogPath: string; evalRecordPath: string; workdirPath: string; errorPath: string; }; export declare function initializeEvalRun(args: { runId: string; runsDir: string; agent: string; inputsSource: string; inputs: Input[]; continueOnError: boolean; startedAt: Date; }): EvalRunState; export declare function prepareInput(state: EvalRunState, input: Input): PreparedInput; /** * Build an EvalRunInputResult for an input that failed before any artifacts * were prepared (e.g. invalid id, working_dir validation). The result * carries no on-disk paths because none were allocated. */ export declare function recordInputPrepareFailure(inputId: string, errorMessage: string): EvalRunInputResult; /** * Build an EvalRunInputResult for a prepared input that failed during run or * extract. Writes the error message to the input's error.txt for offline * inspection. */ export declare function recordInputRunFailure(prepared: PreparedInput, errorMessage: string): EvalRunInputResult; export declare function recordInputSuccess(prepared: PreparedInput): EvalRunInputResult; export declare function shouldExtractStatelog(statelogPath: string): boolean; export declare function writeEvalRunSummary(state: EvalRunState, inputs: EvalRunInputResult[]): EvalRunResult;