import type { IMastraLogger } from '@mastra/core/logger'; import type { WorkspacePackageInfo } from '../bundler/workspaceDependencies.js'; import type { BundlerOptions, DependencyMetadata, ExternalDependencyInfo } from './types.js'; import type { BundlerPlatform } from './utils.js'; /** * Main bundle analysis function that orchestrates the three-step process: * 1. Analyze dependencies * 2. Bundle dependencies modules * 3. Validate generated bundles * * This helps identify which dependencies need to be externalized vs bundled. */ export declare function analyzeBundle(entries: string[], mastraEntry: string, { outputDir, projectRoot, platform, isDev, bundlerOptions, }: { outputDir: string; projectRoot: string; platform: BundlerPlatform; isDev?: boolean; bundlerOptions?: Pick | null; }, logger: IMastraLogger): Promise<{ projectType?: string | undefined; externalDependencies: Map; /** * Workspace deps that were optimized (after isDev/externalsPreset pruning). * Used by the watcher to re-run optimization when workspace sources change. */ depsToOptimize: Map; workspaceRoot: string | undefined; outputDir: string; dependencies: Map; workspaceMap: Map; }>; //# sourceMappingURL=analyze.d.ts.map