/** * Path normalization utilities for ContextAtlas. * * ADR-01 requires a single enforcement point for path normalization. Every * ingest boundary (LSP responses, config reads, atlas.json imports, disk * scans) MUST route paths through `normalizePath()` so that a file on * Windows and the same file on Linux produce byte-identical symbol IDs. * * Rules (applied in order): * 1. Strip `file://` scheme and URL-decode if present. * 2. Backslashes → forward slashes. * 3. Collapse repeated slashes, preserving a leading `//` for UNC paths. * 4. Strip leading `./`. * 5. Strip trailing `/` (unless the path is just `/`). * 6. Lowercase Windows drive letters (e.g. `C:/foo` → `c:/foo`). * * Rule 6 guards against team-level ID divergence when members run from * differently-cased drive mounts (`C:\projects\` vs `c:\projects\`) — * without it, atlas.json diffs would churn on every reindex across * machines, defeating ADR-06's reviewable-artifact property. */ export declare function normalizePath(input: string): string; /** * Convert a normalized absolute path to a `file://` URI suitable for LSP. * Always accepts inputs in any form normalizePath handles. */ export declare function toFileUri(absPath: string): string; /** * Compute a repo-relative path given an absolute path and a root. * Both inputs are normalized first. Throws if the path is not under the * root — caller intent is that the file belongs to the repo. */ export declare function toRelativePath(absPath: string, rootPath: string): string; //# sourceMappingURL=paths.d.ts.map