/** * Scans Repository * * CRUD operations for scan history. * * @module persistence/repositories/scans */ import type Database from "better-sqlite3"; import type { Scan } from "../types.js"; import type { Severity } from "../../certification/types.js"; export declare class ScansRepository { private db; constructor(db: Database.Database); create(projectId: string, certificationId?: string): Scan; complete(id: string, results: { totalFindings: number; newFindings: number; fixedFindings: number; bySeverity: Record; byScanner: Record; duration: number; }): void; fail(id: string, error: string): void; findById(id: string): Scan | undefined; findByProject(projectId: string, limit?: number): Scan[]; findRecent(limit?: number): Scan[]; getCompletedCount(projectId: string, sinceDate?: string): number; private mapRow; } //# sourceMappingURL=scans.d.ts.map