import { existsSync, mkdirSync, renameSync, rmSync } from 'node:fs';
export declare function findRepoRoot(startDir: string): string;
export declare function sanitizeBundledPackageJson(raw: any): any;
export declare function readBundledDependencyNames(rawPackageJson: any): string[];
export declare function readBundledWorkspacePackageNames(rawPackageJson: any): string[];
export declare function rmDirSafeSync(path: string, opts?: Readonly<{
    recursive?: boolean;
    force?: boolean;
    retries?: number;
    delayMs?: number;
    rmSyncImpl?: typeof rmSync;
}>): void;
export declare function atomicReplaceDirSync(params: Readonly<{
    destDir: string;
    buildInto: (tempDir: string) => void;
    fsOps?: Readonly<{
        existsSync?: typeof existsSync;
        mkdirSync?: typeof mkdirSync;
        renameSync?: typeof renameSync;
        rmSync?: typeof rmSync;
    }>;
}>): void;
export declare function bundleWorkspacePackage(params: Readonly<{
    packageName: string;
    srcDir: string;
    destDir: string;
    includeFiles?: string[];
}>): void;
export declare function bundleWorkspacePackages(params: Readonly<{
    bundles: ReadonlyArray<{
        packageName: string;
        srcDir: string;
        destDir: string;
        includeFiles?: string[];
    }>;
}>): void;
export declare function resolveWorkspaceBundlesFromPackageJson(params: Readonly<{
    repoRoot: string;
    hostPackageDir: string;
}>): ReadonlyArray<{
    packageName: string;
    srcDir: string;
    destDir: string;
}>;
export declare function vendorBundledPackageRuntimeDependencies(params: Readonly<{
    srcPackageJsonPath: string;
    resolveFromPackageJsonPath?: string;
    destPackageDir: string;
}>): void;
export declare function bundleInstalledPackageWithRuntimeDependencies(params: Readonly<{
    packageName: string;
    resolveFromPackageJsonPath: string;
    destNodeModulesDir: string;
}>): void;
//# sourceMappingURL=index.d.ts.map