export type DeadCodeOperation = 'check' | 'seed' | 'update'; export type DeadCodeGateOptions = { /** Git repository whose tracked working tree is scanned. */ repoRoot: string; /** Baseline JSON file, absolute or relative to `repoRoot`. */ baselinePath: string; operation?: DeadCodeOperation; /** jscpd config, relative to `repoRoot` and tracked. Defaults to `.jscpd.json`. */ configPath?: string | undefined; /** jscpd executable. Defaults to `/node_modules/.bin/jscpd`. */ binary?: string | undefined; /** Live entry roots (files or globs). Defaults to the config's `deadCode.entry`. */ entryRoots?: readonly string[] | undefined; /** Tracked-file globs left out of the snapshot. */ snapshotIgnore?: readonly string[] | undefined; /** Finding path globs that are not counted. */ excludeFindings?: readonly string[] | undefined; /** Optional deadline source forwarded to child processes. */ remaining?: (() => number) | undefined; }; export type DeadCodeGateResult = { operation: DeadCodeOperation; identities: number; trackedFiles: number; /** Stale identities removed by `update`; 0 for `seed` and `check`. */ removed: number; }; /** Scans a tracked snapshot and checks, seeds, or shrinks the committed baseline. */ export declare function runDeadCodeGate(options: DeadCodeGateOptions): Promise;