export interface CheckRecord { at: string; by: string; /** What the caller named; `ref` is set once the version resolved. */ id: string; ref?: string; type?: string; ok: boolean; /** The refusal code of a call that did not run the checks. */ code?: string; answers?: number; /** Answers failing at least one check. */ flagged?: number; doc_failures?: number; per_check?: Record; } export interface CheckCounts { calls: number; ran: number; refused: number; /** Calls that ran and found at least one flagged answer or document-level failure. */ calls_flagging: number; flagged_answers: number; document_failures: number; /** Per checked version (`id@vN`): how many times it was checked and what the latest run found. */ by_ref: Record; } export declare class CheckJournal { readonly path: string; private tornTail?; constructor(path: string); /** Every well-formed record, in order; a torn or damaged line is skipped. */ records(): CheckRecord[]; counts(): CheckCounts; /** Record one call durably. Throws on an I/O error (the caller then reports the call as failed). */ append(r: CheckRecord): void; } //# sourceMappingURL=check-journal.d.ts.map