import type { EvalCaseResult, EvalRunComparison, EvalRunDetail } from './eval-run-types.js'; type Json = Record; export declare class EvalRunError extends Error { readonly statusCode: number; constructor(message: string, statusCode?: number); } export declare function validateEvalRunId(id: string): void; export declare function evalValueHash(value: unknown): string; /** Eval 存储路径固定在当前工作区,拒绝符号链接串用其他运行的证据。 */ export declare function evalStoragePath(projectRoot: string, ...segments: string[]): Promise; export declare function evalRunPath(project: string, id: string, ...segments: string[]): Promise; export declare function readEvalJson(file: string): Promise; /** 摘要解析失败仍绑定原始字节,不能把两个不同坏 JSON 都当成 null。 */ export declare function readEvalEvidenceRevision(project: string, id: string): Promise; export declare function writeEvalJson(file: string, value: unknown): Promise; export declare function redactEvalOutput(value: string, environment?: NodeJS.ProcessEnv): string; export declare function readEvalBaselines(project: string): Promise>; export declare function forgetEvalEvidenceReader(root: string): void; export interface EvalReadOptions { includeCaseContent?: boolean; resumable?: boolean; maxReportBytes?: number; /** 未缓存报告正文的读取、解析与校验预算;元数据和缓存文件身份仍逐次核对。 */ maxReadMs?: number; } export declare function readEvalRun(project: string, id: string, options?: EvalReadOptions): Promise; export declare function readEvalCasePage(project: string, id: string, query?: { limit?: number; offset?: number; status?: string; q?: string; }): Promise<{ items: EvalCaseResult[]; total: number; runTotal: number; offset: number; nextOffset: number | null; diagnostics: never[]; generation: string; } | { items: EvalCaseResult[]; total: number; runTotal: number; offset: number; nextOffset: number | null; diagnostics: string[]; generation?: undefined; }>; export declare function readEvalCase(project: string, id: string, caseId: string): Promise; export declare function listEvalRuns(project: string, options?: EvalReadOptions): Promise; export declare function setEvalBaseline(project: string, id: string, expectedPrevious?: string): Promise; export declare function clearEvalBaseline(project: string, id: string, expected?: { scope: string; runId: string; }): Promise; export declare function compareEvalRuns(project: string, candidateId: string, baselineId: string, contextFiles?: { baselineContextCost?: string; candidateContextCost?: string; }): Promise; export declare function readEvalArtifact(project: string, id: string, artifactId: string, options?: { tail?: boolean; }): Promise<{ content: string; format: 'markdown' | 'html' | 'json' | 'text'; truncated?: boolean; }>; export {}; //# sourceMappingURL=eval-run-store.d.ts.map