/** * VF module resolver for SSR transformed code. * * Extracts and resolves /_vf_modules/* imports into file:// cache paths. */ import type { RuntimeAdapter } from "../../../platform/adapters/base.js"; import type { DependencyPinningSourceInput } from "../../../transforms/esm/package-registry.js"; interface VfModuleImport { specifier: string; path: string; } interface ResolveVfModuleImportsOptions { filePath: string; projectId: string; contentSourceId: string; adapter: RuntimeAdapter; projectDir: string; /** * Compile mode of the render that resolves these imports. Production renders * must pass false: development output is unminified, not tree-shaken and * carries an inline sourcemap that discloses the project source. */ dev: boolean; reactVersion?: string; moduleServerOrigin?: string; dependencyPinningCacheKey?: string; dependencyPinningDependencies?: Readonly>; dependencyPinningSource?: DependencyPinningSourceInput; } /** * Find /_vf_modules/ imports in transformed code. * Matches both /_vf_modules/... and file:///_vf_modules/... forms. */ export declare function findVfModuleImports(code: string): Promise; /** * Resolve /_vf_modules/ imports to local cached modules and rewrite code. */ export declare function resolveVfModuleImports(code: string, options: ResolveVfModuleImportsOptions): Promise; export {}; //# sourceMappingURL=vf-module-resolver.d.ts.map