import type { RootEntry } from "@pulsemcp/air-core"; /** * Normalize a git remote URL to a comparable form: "github.com/owner/repo" * Handles HTTPS, SSH (git@), and trailing .git. */ export declare function normalizeGitUrl(url: string): string; /** * Detect which root matches the current git repository and subdirectory. * * Algorithm: * 1. Get the git remote URL and relative subdirectory from targetDir * 2. Normalize the URL and compare against all root URLs * 3. Among roots with matching URLs, pick the best subdirectory match: * - Exact match (root.subdirectory === current subdirectory) * - Longest prefix match * - Root-level (no subdirectory / empty subdirectory) */ export declare function detectRoot(roots: Record, targetDir: string): RootEntry | undefined; //# sourceMappingURL=root-detection.d.ts.map