import type { BundlePackagesConfig, CompileMode, EntryMode, LegacyPackageCompileOptions, PackageCompileEsbuildConfig } from './XyConfig.ts';
export declare const DEFAULT_COMPILE_MODE: CompileMode;
export declare function parseNpmPackageName(importPath: string): string | undefined;
export declare function normalizeScopePrefix(scope: string): string;
export declare function isBundleScopeMatch(packageName: string, scope: string): boolean;
export declare function hasBundlePackageRules(bundlePackages?: BundlePackagesConfig): boolean;
export declare function collectWorkspacePackageNames(cwd: string): Set<string>;
export declare function shouldBundlePackageName(packageName: string, bundlePackages: BundlePackagesConfig, workspacePackageNames: ReadonlySet<string>): boolean;
export declare function resolveEffectiveBundlePackages(mode: CompileMode, bundlePackages?: BundlePackagesConfig): BundlePackagesConfig | undefined;
export declare function createPackageExternalFilter(bundlePackages: BundlePackagesConfig, workspacePackageNames: ReadonlySet<string>): (importPath: string) => boolean;
export declare function resolveEffectiveEntryMode(compile?: PackageCompileEsbuildConfig): EntryMode | undefined;
export declare function resolveCompileModeEsbuildOptions(compile: PackageCompileEsbuildConfig | undefined, cwd: string): LegacyPackageCompileOptions;
//# sourceMappingURL=resolveCompileBundleOptions.d.ts.map