/** * @file Deterministic lockfile redundancy detection. Grouping installed * packages by base name and flagging duplicates is exact bookkeeping, so it * belongs in code, not in a small model's judgment. Two shapes are flagged: a * package present at more than one version, and a curated pair of functional * duplicates (a package and its ESM twin) both installed at once. */ export interface RedundantPackageFinding { name: string; reason: string; } /** * Curated functional-duplicate pairs. Both members solving the same problem in * one install tree is redundant even when neither is version-duplicated. */ export declare const REDUNDANT_PAIRS: ReadonlyArray; /** * Find redundant packages in an npm-style lockfile. Parses the JSON, groups the * installed packages under `packages` by their base name (the segment after the * last `node_modules/`), and flags any name present at more than one version * plus any `REDUNDANT_PAIRS` entry whose members both appear. */ export declare function findRedundantPackages(lockfileText: string): RedundantPackageFinding[];