import { SpawnSyncOptions, SpawnSyncReturns } from 'child_process'; export type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun'; export type CommandType = 'install' | 'run' | 'test' | 'view'; /** * Detects the package manager used in the current project. * Prioritizes npm_config_user_agent, then checks for lock files. */ export declare function detectPackageManager(): PackageManager; /** * Runs a package manager command synchronously. * @param command The type of command to run ('install', 'run', 'test', 'view'). * @param args Arguments for the command. * @param options Options for spawnSync. * @returns The result of spawnSync. */ export declare function runCommand(command: CommandType, args: string[], options?: SpawnSyncOptions): SpawnSyncReturns; /** * Gets the package.json key for overriding dependencies based on the package manager. */ export declare function getOverrideKey(): 'resolutions' | 'overrides';