import type { GlobalInstallerKind, GlobalInstallerResolution, InstalledVersionValidation, ResolveGlobalInstallerOptions, ValidateInstalledVersionOptions } from "../types/index.js";
/** Resolve a package manager that can update the installation currently running. */
export declare function resolveGlobalInstaller(options?: ResolveGlobalInstallerOptions): GlobalInstallerResolution;
export declare function getGlobalInstallArgs(kind: GlobalInstallerKind, packageSpec: string): string[];
/**
 * Validate a freshly installed CLI with retries. Global package replacement
 * can leave executable shims briefly unavailable while filesystem metadata and
 * cold module loading settle, so a single short probe is not authoritative.
 */
export declare function validateInstalledVersion(options: ValidateInstalledVersionOptions): Promise<InstalledVersionValidation>;
export declare function describeInstallFailure(error: unknown): string;
