import type { OutputChunk, OutputAsset } from 'rollup'; import type { WorkspacePackageInfo } from '../../bundler/workspaceDependencies.js'; import type { DependencyMetadata } from '../types.js'; import type { BundlerPlatform } from '../utils.js'; import type { NormalizedExternals } from './externals.js'; type VirtualDependency = { name: string; virtual: string; }; /** * Creates virtual dependency modules for optimized bundling by generating virtual entry points for each dependency with their specific exports and handling workspace package path resolution. */ export declare function createVirtualDependencies(depsToOptimize: Map, { projectRoot, workspaceRoot, outputDir, bundlerOptions, }: { workspaceRoot: string | null; projectRoot: string; outputDir: string; bundlerOptions?: { isDev?: boolean; externalsPreset?: boolean; }; }): { optimizedDependencyEntries: Map; fileNameToDependencyMap: Map; }; /** * Bundles vendor dependencies identified in the analysis step. * Creates virtual modules for each dependency and bundles them using rollup. * * @param depsToOptimize - Map of dependencies to optimize with their metadata (exported bindings, rootPath, isWorkspace) * @param outputDir - Directory where bundled files will be written * @param logger - Logger instance for debugging * @returns Object containing bundle output and reference map for validation */ export declare function bundleExternals(depsToOptimize: Map, outputDir: string, options: { bundlerOptions: NormalizedExternals & { isDev?: boolean; transpilePackages?: string[]; }; projectRoot?: string; workspaceRoot?: string; workspaceMap?: Map; platform?: BundlerPlatform; }): Promise<{ output: [OutputChunk, ...(OutputAsset | OutputChunk)[]]; fileNameToDependencyMap: Map; usedExternals: Record>; }>; export {}; //# sourceMappingURL=bundleExternals.d.ts.map