/** * Domain naming * * Single source of truth for turning a file path into a business-domain * name. Used by both the dependency-graph cluster naming (`suggestDomainName`) * and the repository-mapper domain inference (`inferDomains`) so the two never * diverge — a divergence that previously made Java/Kotlin projects collapse all * source into a reverse-DNS org root like "springframework" (issue #138). */ /** * Directory segments that should never be used as a domain name when deriving * one from a path. Covers generic source roots plus language build layouts * (Maven/Gradle `src/main/java`, Go `pkg`/`internal`) and reverse-DNS package * roots (`com`, `org`, `io`, …) so that Java/Kotlin/Go projects don't get * nonsense domains like "main", "java", "com", or "springframework". */ export declare const DOMAIN_NOISE_DIRS: Set; /** * Derive a business-domain name from a directory's path segments by walking * from the deepest (most specific) segment outward, skipping build-layout and * reverse-DNS package noise. Returns null when no meaningful segment exists * (e.g. a file sitting directly in a noise root), letting the caller fall back. * * `src/main/java/com/example/inventory` → `inventory` * `org/springframework/samples/petclinic/owner` → `owner` */ export declare function deriveDomainFromPath(dirParts: string[]): string | null; //# sourceMappingURL=domain-naming.d.ts.map