/** * Unresolved module HTTP fallback phase for the MDX ESM module fetcher. * * @module transforms/mdx/esm-module-loader/module-fetcher/http-fallback */ import type { RuntimeAdapter } from "../../../../platform/adapters/base.js"; import type { Logger } from "../../../../utils/index.js"; import { fetchModuleViaHTTP } from "./http-fetcher.js"; import { cacheModule } from "./module-cache.js"; type FetchModuleViaHttpFn = typeof fetchModuleViaHTTP; type CacheLocalModuleFn = typeof cacheModule; export interface ResolveUnresolvedModuleViaHttpFallbackInput { normalizedPath: string; parentModulePath?: string; adapter: RuntimeAdapter; fetchAndCacheModule: (path: string, parent?: string) => Promise; log: Logger; projectSlug: string; isLocalProject?: boolean; strictMissingModules?: boolean; esmCacheDir: string; pathCache: Map; reactVersion?: string; dependencyPinningCacheKey?: string; moduleServerOrigin?: string; serverExternalPackages?: readonly string[]; /** Compile mode of the render fetching this module, part of the cache identity. */ dev?: boolean; fetchViaHttp?: FetchModuleViaHttpFn; cacheLocalModule?: CacheLocalModuleFn; } /** * Resolve an unresolved filesystem module through the local HTTP fallback. */ export declare function resolveUnresolvedModuleViaHttpFallback(input: ResolveUnresolvedModuleViaHttpFallbackInput): Promise; export {}; //# sourceMappingURL=http-fallback.d.ts.map