export interface Packument { 'dist-tags': Record; versions: Record; } /** * Turns what the user asked for into a concrete pnpm version. * * `spec` may be a dist-tag (`latest`, `next-12`), an exact version (`11.20.0`, * with an optional leading `v`), or a bare major (`12`), which picks that * major's stable release and falls back to its prerelease lane. * * Dist-tags win over exact versions, matching `install.ps1`. * * @throws if `spec` matches neither a dist-tag nor a published version. */ export declare function resolveVersion(packument: Packument, spec: string): string; /** The major of an exact version, as the package layout depends on it. */ export declare function majorVersion(version: string): number;