import type { RuntimeAdapter } from "../../../platform/adapters/base.js"; import type { DependencyPinningSourceInput } from "../../../transforms/esm/package-registry.js"; import type { TransformProgressListener } from "../../../transforms/progress.js"; import { CycleManifestTransaction } from "./cycle-manifest.js"; export { isBuildFailure } from "./build-failure.js"; export { __setModuleTransformActivityObserverForTests, __setModuleTransformStallTimeoutForTests, } from "./transform-permit.js"; export { createEsmCache, createModuleCache, generateHash } from "./cache.js"; export { fetchEsmModule, rewriteEsmPaths } from "./esm-rewriter.js"; /** Transform a module graph while sharing each planned source's in-flight result. */ export declare function transformModuleWithDeps(filePath: string, tmpDir: string, localAdapter: RuntimeAdapter, config: ModuleLoaderConfig, useLocalAdapter?: boolean, lineage?: ReadonlySet, cycleManifest?: CycleManifestTransaction, unresolvedSpecifiers?: Set): Promise; export interface ModuleLoaderConfig { projectDir: string; projectId?: string; contentSourceId?: string; adapter: RuntimeAdapter; mode: "development" | "production"; moduleCache: Map; esmCache: Map; /** React version for transforms (from project config) */ reactVersion?: string; /** Absolute request origin used to identify same-origin module URLs. */ moduleServerOrigin?: string; /** Bare npm package roots that the runtime resolves without bundling. */ serverExternalPackages?: readonly string[]; /** Stable VERYFRONT_DEPENDENCY_PINNING + package dependency-map state. */ dependencyPinningCacheKey?: string; /** Immutable package map paired with dependencyPinningCacheKey. */ dependencyPinningDependencies?: Readonly>; /** Exact package source namespace used to prove write-back authority. */ dependencyPinningSource?: DependencyPinningSourceInput; /** Cooperative cancellation for one module-load stage. */ signal?: AbortSignal; /** Meaningful module/transform milestones for the stage idle timeout. */ onProgress?: TransformProgressListener; } /** * Detect a dynamic `import()` failure caused by a module file that is missing on * disk (e.g. a stale/evicted cached page module). Matches Node/Deno's * `ERR_MODULE_NOT_FOUND` as well as the "Cannot find module" / "Module not found" * message variants the runtimes surface for a missing `import()` target. */ export declare function isMissingModuleError(error: unknown): boolean; export declare function isUnresolvedTenantImport(error: unknown, unresolvedSpecifiers: ReadonlySet, rebuiltArtifactPath?: string): boolean; /** * Load a module by path, transforming it and its dependencies. * * @param filePath - Path to the module to load * @param config - Module loader configuration * @returns The loaded module */ export declare function loadModule(filePath: string, config: ModuleLoaderConfig): Promise>; //# sourceMappingURL=index.d.ts.map