/** * Portable destination-path overlap detection for staged files. * * Two `dest` paths "overlap" when one is the same as, or a parent directory of, * the other (`a/b` vs `a/b/c`). Overlapping destinations make authoritative, * order-dependent staging ambiguous — one entry would clobber or nest inside the * other — so callers reject them. * * Comparison is deliberately conservative for cross-platform fixtures: path * separators are normalized, `.` segments dropped, and segments compared * case-insensitively so `Tests` and `tests/key.json` are flagged on the * case-insensitive filesystems (macOS, Windows) where they collide at runtime. */ /** Split a `dest` into comparison segments (separator-normalized, `.`-stripped). */ export declare function destSegments(dest: string): string[]; /** * Whether two segment lists overlap, and how. `undefined` means disjoint. * `"duplicate"` means the same normalized path; `"nested"` means one is an * ancestor of the other. */ export declare function segmentsOverlap(a: readonly string[], b: readonly string[]): "duplicate" | "nested" | undefined; //# sourceMappingURL=dest-overlap.d.ts.map