/** Clears the cached source-root lists. Exported for test isolation. */ export declare function clearJvmSourceRootCache(): void; /** * Find (or retrieve from cache) every conventional Maven/Gradle source-set * directory present anywhere under `workspaceRoot`. * * Returns workspace-relative directories (POSIX separators, deduplicated), * ordered per `CONVENTIONAL_SOURCE_SETS` and alphabetically within each -- * deterministic across runs, though real disambiguation comes from * `resolveJvmSourceRootImport`'s own existence check, not this ordering. * Returns an empty array when none exist -- callers can treat that as * "nothing to resolve" with zero behavior change. * * @param workspaceRoot - Absolute path to the project root. */ export declare function resolveJvmSourceRoots(workspaceRoot: string): string[]; /** * Resolve a raw Java/Kotlin dotted FQN (e.g. `com.squareup.javapoet.TypeName`) * to a workspace-relative path (e.g. `src/main/java/com/squareup/javapoet/TypeName`), * by trying each of `sourceRoots` in order and requiring the candidate to * exist on disk as a real `.java` or `.kt` file (see this module's doc * comment for why existence, not a bare textual join, is required). * * No-op (returns `specifier` unchanged) when: * - `sourceRoots` is empty or `workspaceRoot` is absent (nothing to resolve * against), * - `specifier` isn't a bare/dotted identifier path (already a slash path, * a relative specifier, or a wildcard-suffixed package -- none of these * are FILE-shaped, so an existence check against a single file candidate * doesn't apply), * - no candidate resolves to a real file (an external library, a * non-standard layout, or a package-only wildcard import that names a * directory rather than a file all fall through here, exactly as * unresolved today). * * @param specifier - The raw (pre-`normalizePath`) Java/Kotlin import specifier. * @param sourceRoots - Candidate source-set directories, from `resolveJvmSourceRoots`. * @param workspaceRoot - Absolute project root, for the existence check. */ export declare function resolveJvmSourceRootImport(specifier: string, sourceRoots: readonly string[], workspaceRoot: string | undefined): string; //# sourceMappingURL=jvm-source-root.d.ts.map