import { type Finding } from './types.js'; export type FindingCounts = Record>>; export type FindingsFile = { counters: Record; read: true; } | { read: false; reason: string; }; export type HeldFindings = { counts: FindingCounts | undefined; read: true; } | { read: false; reason: string; }; export declare const findingsPathFor: (baselinePath: string) => string; export declare const hashOfFlagged: (text: string) => string; export declare const readFindingsFile: (path: string) => FindingsFile; export declare const heldFindingsOf: (file: FindingsFile, key: string) => HeldFindings; export declare const countsOf: (findings: readonly Finding[]) => FindingCounts; export declare const newFindingsOf: (held: FindingCounts, now: readonly Finding[]) => Finding[]; export declare const writeFindingsFile: (path: string, recorded: Record) => void;