/** * Evaluation Harness, Baseline persistence. * * Provides load/save/capture utilities for EvalBaseline records. * Baselines are stored as JSON files on disk and loaded by the CI gate. * * File format: a single JSON object matching the EvalBaseline type. */ import type { EvalBaseline, EvalSuiteResult } from './types.js'; /** * Capture a baseline snapshot from a set of suite results. * * @param label - Human-readable label (e.g. 'main', 'v0.12.0'). * @param suiteResults - One or more suite results to capture. * @returns A new EvalBaseline. */ export declare function captureBaseline(label: string, suiteResults: EvalSuiteResult[]): EvalBaseline; /** * Serialise a baseline to a JSON string. */ export declare function serialiseBaseline(baseline: EvalBaseline): string; /** * Deserialise a baseline from a JSON string. * Throws if the payload is not a valid EvalBaseline shape. */ export declare function deserialiseBaseline(json: string): EvalBaseline; /** * Write a baseline to a file path. * Uses Bun.write for efficient file I/O. */ export declare function writeBaseline(filePath: string, baseline: EvalBaseline, projectRoot: string): Promise; /** * Load a baseline from a file path. * Returns undefined if the file does not exist. */ export declare function loadBaseline(filePath: string, projectRoot: string): Promise; /** * Format a comparison summary between a baseline and a fresh suite result. */ export declare function formatBaselineComparison(baseline: EvalBaseline, fresh: EvalSuiteResult): string; //# sourceMappingURL=baseline.d.ts.map