/**** * HTTP fallback module fetching for local development. * * When a module cannot be read directly from the filesystem, * this fetches it via the local dev server's HTTP endpoint. * * @module transforms/mdx/esm-module-loader/module-fetcher/http-fetcher */ import type { Logger } from "../../../../utils/index.js"; import type { RuntimeAdapter } from "../../../../platform/adapters/base.js"; export interface FetchModuleViaHttpOptions { esmCacheDir?: string; fetchFn?: typeof fetch; moduleServerOrigin?: string; strictMissingModules?: boolean; timeoutMs?: number; } /** * Fetch module via HTTP as a fallback (local development only). * * In production, direct read failures are fatal -- modules must be pre-loaded. * In local dev, we fall back to fetching from the dev server and resolve * nested imports recursively. */ export declare function fetchModuleViaHTTP(normalizedPath: string, adapter: RuntimeAdapter, fetchAndCacheModuleFn: (path: string, parent?: string) => Promise, log: Logger, projectSlug?: string, isLocalProject?: boolean, dependencyPinningCacheKey?: string, options?: FetchModuleViaHttpOptions): Promise; //# sourceMappingURL=http-fetcher.d.ts.map