/** * Four denominator bugs landed in one day (a migrations run reporting on three of four files, a * plan check printing `PASS — 0 plan(s)` over twenty-one), each green because the tool published * the numerator and nobody the denominator. So every gate writes this, and the write throws, with * no file created, unless `considered === read + refused.length + excused.length`. * `refused` is the tool unable to read the thing; `excused` is the thing legitimately exempt. */ export type EnvelopeEntry = { path: string; reason: string; }; export type ReportEnvelope = { considered: number; durationMs: number; excused: EnvelopeEntry[]; findings: unknown[]; read: number; refused: EnvelopeEntry[]; tool: string; version: string; }; export declare const ENVELOPES_DIR = ".geonosis/envelopes"; export declare const envelopePath: (root: string, tool: string) => string; export declare class UnbalancedEnvelope extends Error { constructor(message: string); } export declare const writeEnvelope: ({ envelope, next, root }: { envelope: ReportEnvelope; next: string; root: string; }) => string; export declare const versionOf: (moduleUrl: string) => string;