import type { GlobalPackageInfo } from '@pnpm/global.packages'; /** * Whether `pkg` is a global group the pnpm CLI is installed in. `update -g` * leaves the whole group alone: reinstalling it would relink pnpm's bin * whatever else the group holds. */ export declare function hasPnpmCliDependency(pkg: Pick): boolean; /** Whether `pkg` is a global group holding nothing but the pnpm CLI. */ export declare function isPnpmCliOnlyGroup(pkg: Pick): boolean; /** * Whether any of `selectors` names the pnpm CLI. Each is normalized to the * package it installs first, so neither a versioned form like `pnpm@9` nor an * aliased one like `foo@npm:pnpm@9` bypasses the guard. */ export declare function selectsPnpmCli(selectors: readonly string[]): boolean; /** * Whether a dependency declared as `alias` at `spec` is the pnpm CLI. An `npm:` * alias resolves to its target, so `foo` at `npm:pnpm@9` is the pnpm CLI under * another name — the install still carries pnpm's own `pnpm` bin. */ export declare function isPnpmCliDependency(alias: string, spec?: string): boolean;