import type { IMastraLogger } from '@mastra/core/logger';
import type { WorkspacePackageInfo } from '../bundler/workspaceDependencies.js';
import type { BundlerOptions, 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<BundlerOptions, 'externals' | 'enableSourcemap' | 'dynamicPackages'> | null;
}, logger: IMastraLogger): Promise<{
    externalDependencies: Map<string, ExternalDependencyInfo>;
    dependencies: Map<string, string>;
    workspaceMap: Map<string, WorkspacePackageInfo>;
}>;
//# sourceMappingURL=analyze.d.ts.map