/**
 * Shared version check for CLI and MCP: query npm registry, compare semver,
 * format upgrade command. Never throws; returns null on registry failure.
 */
/**
 * Fetch latest version for a package from npm registry (dist-tags).
 * On failure (network, non-2xx) returns null; never throws.
 */
export declare function getLatestFromRegistry(packageName: string, distTag?: string): Promise<string | null>;
/**
 * True if current is a valid semver and is strictly less than latest.
 * Invalid versions yield false.
 */
export declare function isUpdateAvailable(current: string, latest: string): boolean;
/**
 * Format the upgrade command for display.
 * context 'global' => npm i -g <name>@<distTag>
 * context 'npx' => npx <name>@<distTag> ...
 */
export declare function formatUpgradeCommand(packageName: string, distTag: string, context?: "global" | "npx"): string;
//# sourceMappingURL=version_check.d.ts.map