import type { PackageManager, PackageManagerSelection } from "../../core/types/index.js"; /** * Find nearest ancestor directory that contains package.json. * * Postcondition: returns an absolute path. */ export declare function findProjectRoot(startDir: string): string; /** * Resolve effective package manager for a given cwd and optional user selection. * * Invariant: if selection ∈ {npm,pnpm,yarn} it always wins over auto detection. */ export declare function resolvePackageManager(params: { readonly cwd: string; readonly selection?: PackageManagerSelection; }): { readonly projectRoot: string; readonly packageManager: PackageManager; }; /** * Format a dev-dependency install command for a package manager. */ export declare function formatInstallDevCommand(packageManager: PackageManager, packages: readonly string[]): string; //# sourceMappingURL=package-manager.d.ts.map