import type { RunOutput, RunResult } from "../types/output.js"; import type { ScoredOutput, ScoredRunResult, SparseIndex } from "../types/scoring.js"; /** * Create the report directory for a run. * Call this early — before scoring — so the report dir is available * for writing raw data that judges can read. */ export declare function initReport(timestamp: string, configDir: string): { reportId: string; reportDir: string; }; /** * Write raw run data for a single scenario×agent to the report directory. * Call this after building the sparse index but before running LLM judges, * so judges can read these files for context. * * Writes: * - `{agent}.raw.ndjson` — raw agent stdout lines (if available) * - `{agent}.sparse-index.txt` — human-readable sparse index (always) */ export declare function writeScenarioRawData(reportDir: string, result: RunResult | ScoredRunResult, sparseIndex?: SparseIndex): void; /** * Finalize a report: write scored scenario JSON, manifest, and HTML. * Call this after all scoring is complete. */ export declare function finalizeReport(reportDir: string, output: ScoredOutput | RunOutput, name?: string): void; /** * Write a run's output to the persistent report store in a single call. * Combines initReport + writeScenarioRawData + finalizeReport. * Returns the reportId. */ export declare function writeReportToStore(output: ScoredOutput | RunOutput, configDir: string, name?: string): string; /** Resolve the reports directory for a given config directory. */ export declare function getReportsDir(configDir: string): string; //# sourceMappingURL=writer.d.ts.map