export type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun'; /** * Detect the package manager used in a project directory. * * Detection priority: * 1. Lock file presence (most reliable — reflects actual usage) * 2. packageManager field in package.json (explicit declaration) * 3. Default: npm */ export declare function detectPackageManager(cwd: string): PackageManager; /** * Get the run command for a package manager script. * For 'test', uses the shorthand (e.g., `pnpm test`). * For other scripts, uses `run` (e.g., `pnpm run build`). */ export declare function getRunCommand(pm: PackageManager, script: string): { command: string; args: string[]; }; /** * Format a run command as a display string. * e.g., "pnpm run build" or "bun test" */ export declare function formatRunCommand(pm: PackageManager, script: string): string; //# sourceMappingURL=package-manager.d.ts.map