export type PackageManagerFamily = "bun" | "npm" | "pnpm" | "yarn"; export interface PackageManagerResolution { family: PackageManagerFamily; source: "config" | "user-agent" | "fallback"; reason: string; available: Record; configuredFamily?: PackageManagerFamily; userAgentFamily?: PackageManagerFamily; } export interface PackageManagerCommand { command: string; args: string[]; } interface ResolvePackageManagerOptions { agentsDir?: string; env?: Record; userAgent?: string; fallbackOrder?: PackageManagerFamily[]; commandExists?: (command: string) => boolean; execPath?: string; home?: string; platform?: NodeJS.Platform; } export declare function parsePackageManagerUserAgent(userAgent: string | undefined): PackageManagerFamily | null; export declare function detectAvailablePackageManagers(commandExists?: (command: string) => boolean): Record; export declare function resolvePrimaryPackageManager(options?: ResolvePackageManagerOptions): PackageManagerResolution; export declare function getSkillsRunnerCommand(family: PackageManagerFamily, skillsArgs: string[]): PackageManagerCommand; /** * Resolve the filesystem path where a globally-installed package lives. * Returns undefined if the path cannot be determined or does not exist. */ export declare function resolveGlobalPackagePath(family: PackageManagerFamily, packageName: string): string | undefined; export declare function getGlobalInstallCommand(family: PackageManagerFamily, packageName: string): PackageManagerCommand; export {}; //# sourceMappingURL=package-manager.d.ts.map