/** * Loader Helpers * * Helper functions for ESM module loading: cache directory initialization, * project directory resolution, framework bundle validation, and VF module * import discovery/processing. * * @module build/transforms/mdx/esm-module-loader/loader-helpers */ import type { ESMLoaderContext } from "./types.js"; /** * Check which framework bundles are missing from disk. * Returns the list of missing file paths. */ export declare function findMissingFrameworkBundles(paths: string[]): Promise; export declare function resolveProjectDir(context: ESMLoaderContext): string; /** * Initialize the ESM cache directory. * Includes contentSourceId in the path to isolate preview vs production caches. */ export declare function initializeCacheDir(context: ESMLoaderContext): Promise; /** * Find /_vf_modules/ imports in code. */ export declare function findVfModuleImports(code: string): Array<{ original: string; path: string; suffix: string; start: number; end: number; isDynamic?: boolean; }>; /** * Process /_vf_modules/ imports and replace them with file:// paths. */ export declare function processVfModuleImports(code: string, imports: Array<{ original: string; path: string; suffix?: string; start: number; end: number; isDynamic?: boolean; }>, context: ESMLoaderContext, projectDir: string, strictMissingModules: boolean): Promise; //# sourceMappingURL=loader-helpers.d.ts.map