/** * Supported package managers for LiveStore projects. * Yarn is explicitly not supported due to compatibility issues. */ export type PackageManager = 'npm' | 'pnpm' | 'bun'; /** * Result of package manager detection. * Returns 'unsupported' for yarn to allow the CLI to show a warning message. */ export type DetectPackageManagerResult = { _tag: 'supported'; pm: PackageManager; } | { _tag: 'unsupported'; pm: 'yarn'; }; /** * Detects the package manager used to invoke the CLI based on the `npm_config_user_agent` * environment variable. This env var is set by npm, pnpm, yarn, and bun when running scripts. * * - Returns 'unsupported' for yarn so the CLI can show a recommendation to use bun instead * - Falls back to 'bun' when detection fails (e.g., when run directly without a package manager) */ export declare const detectPackageManager: (userAgent?: string) => DetectPackageManagerResult; /** Package manager command templates */ export declare const pmCommands: { readonly install: { readonly npm: "npm install"; readonly pnpm: "pnpm install"; readonly bun: "bun install"; }; readonly run: { readonly npm: (script: string) => string; readonly pnpm: (script: string) => string; readonly bun: (script: string) => string; }; }; //# sourceMappingURL=package-manager.d.ts.map