/**** * Local filesystem module caching and path normalization. * * Handles writing transformed modules to the local cache directory * and normalizing module paths for consistent cache key generation. * * @module transforms/mdx/esm-module-loader/module-fetcher/module-cache */ import type { Logger } from "../../../../utils/index.js"; /** * Normalize a module path, resolving relative paths if a parent is provided. */ export declare function normalizePath(modulePath: string, parentModulePath?: string): string; /** * Write module to cache and return the cache path. * * Skips caching if the module has unresolved imports (indicates incomplete * dependency resolution). Otherwise writes to the local filesystem cache * and updates the path cache map. */ export declare function cacheModule(normalizedPath: string, moduleCode: string, esmCacheDir: string, pathCache: Map, log: Logger, reactVersion?: string, dependencyPinningCacheKey?: string, moduleServerOrigin?: string, serverExternalPackages?: readonly string[], dev?: boolean): Promise; //# sourceMappingURL=module-cache.d.ts.map