import type { EvaluationJob } from './eval.js'; import type { EvaluationReport, ReportDocument } from './report.js'; export interface ReportStore { list(): Promise; get(id: string): Promise; save(id: string, report: ReportDocument): Promise; update(id: string, mutator: (report: ReportDocument) => void): Promise; remove(id: string): Promise; exists(id: string): Promise; findByVariant(variantName: string): Promise; findByArtifactHash(hash: string): Promise; } export interface JobStore { list(): Promise; get(id: string): Promise; save(id: string, job: EvaluationJob): Promise; update(id: string, mutator: (job: EvaluationJob) => EvaluationJob): Promise; remove(id: string): Promise; exists(id: string): Promise; }