/** * Final persistence phase for the MDX ESM module fetcher. * * @module transforms/mdx/esm-module-loader/module-fetcher/persistence */ import type { Logger } from "../../../../utils/index.js"; import { cacheModule } from "./module-cache.js"; import { writeDistributedCache } from "./distributed-cache.js"; type CacheLocalModuleFn = typeof cacheModule; type WriteDistributedCacheFn = typeof writeDistributedCache; type DistributedCache = Parameters[0]; export interface PersistResolvedModuleInput { normalizedPath: string; moduleCode: string; esmCacheDir: string; pathCache: Map; log: Logger; projectSlug: string; reactVersion?: string; dependencyPinningCacheKey?: string; moduleServerOrigin?: string; serverExternalPackages?: readonly string[]; /** Compile mode of `moduleCode`, kept in the local path-cache identity. */ dev?: boolean; distributedCacheWrite?: { distributedCache: DistributedCache; transformCacheKey: string; projectId: string; contentSourceId: string; }; cacheLocalModule?: CacheLocalModuleFn; writeToDistributedCache?: WriteDistributedCacheFn; } /** * Persist fully resolved module code to distributed and local caches. */ export declare function persistResolvedModule(input: PersistResolvedModuleInput): Promise; export {}; //# sourceMappingURL=persistence.d.ts.map