/** Clears the cached directory-entry lookups. Exported for test isolation. */ export declare function clearJsDirectoryIndexCache(): void; /** * Resolve `specifier` (already relative-resolved to a workspace-relative-ish * path by `resolveRelativeImport`) to `/index` when it names a * real on-disk directory with a recognized `index.` entry file, using * `workspaceRoot` to build the absolute path for the filesystem check. * * No-op (`specifier` unchanged) when: * - `workspaceRoot` is undefined. * - `/` isn't a directory at all — the common * case: an ordinary file-shaped relative import, already correctly matched * without this step. * - It IS a directory but has no recognized `index.` file (a directory * of loose files with no barrel) — left unresolved rather than guessed; * `dependency-analyzer.ts`'s per-chunk Python-strategy guard is the * residual defense for this case. * * @param specifier - The already relative-resolved specifier. * @param workspaceRoot - Absolute path to the project root (for the existence check). */ export declare function resolveJsDirectoryIndex(specifier: string, workspaceRoot: string | undefined): string; //# sourceMappingURL=js-directory-index.d.ts.map