import EventEmitter from "node:events"; //#region src/index.d.ts declare const dir: () => string; declare const run: (argv: string[]) => EventEmitter; type CompareInput = { actualDir: string; expectedDir: string; diffDir: string; report?: string; junitReport?: string; json?: string; /** Re-render HTML from an existing reg.json (classic `-F/--from`). */ from?: string; /** "none" (default) | "client" — enable the report's browser-side * second-pass detector (classic `-X/--additionalDetection`). */ additionalDetection?: 'none' | 'client'; update?: boolean; extendedErrors?: boolean; /** Classic reg-cli's `-I/--ignoreChange` — governs the CLI's exit code * only. Accepted and silently dropped by `compare()` for drop-in * compat with reg-suit's `processor.ts:107`. */ ignoreChange?: boolean; urlPrefix?: string; matchingThreshold?: number; threshold?: number; thresholdRate?: number; thresholdPixel?: number; concurrency?: number; enableAntialias?: boolean; enableClientAdditionalDetection?: boolean; /** Classic reg-cli's CLI-side x-img-diff extra detection pass. The * Wasm pipeline's diff already includes the equivalent classification, * so this is a no-op but accepted for drop-in compat with reg-suit's * `processor.ts:114`. */ enableCliAdditionalDetection?: boolean; }; type CompareOutput = { failedItems: string[]; newItems: string[]; deletedItems: string[]; passedItems: string[]; expectedItems: string[]; actualItems: string[]; diffItems: string[]; actualDir: string; expectedDir: string; diffDir: string; }; declare const compare: (input: CompareInput) => EventEmitter; declare function writeRegJson(path: string, data: CompareOutput): Promise; //#endregion export { CompareInput, CompareOutput, compare, dir, run, writeRegJson };