/** * JSON results reporter for guardrail evaluation. * * This module implements a reporter that saves evaluation results and metrics in JSON and JSONL formats. * It provides a class for writing results to disk for further analysis or sharing. */ import type { GuardrailMetrics, ResultsReporter, SampleResult } from './types'; /** * Reports evaluation results in JSON format. */ export declare class JsonResultsReporter implements ResultsReporter { /** * Save evaluation results to files. * * @param results - List of evaluation results * @param metrics - Dictionary of guardrail metrics * @param outputDir - Directory to save results * * @throws {Error} If there are any file I/O errors * @throws {Error} If results or metrics are empty */ save(results: SampleResult[], metrics: Record, outputDir: string): Promise; /** * Write results to file in JSONL format. * * @param filePath - Path to the file to write to * @param results - List of results to write */ private writeResults; } //# sourceMappingURL=json-reporter.d.ts.map