export interface VersionCheckResult { currentVersion: string; latestVersion: string | null; hasUpdate: boolean; checked: boolean; } /** * Compare two semver version strings. * Returns a positive number if a > b, negative if a < b, 0 if equal. */ export declare function compareVersions(a: string, b: string): number; /** * Get the current installed Comet version from package.json. */ export declare function getCurrentVersion(): string; /** * Fetch the latest version from the npm registry. * Returns null if the registry is unreachable or the request fails. */ export declare function getLatestVersion(): Promise; /** * Check for available updates. * Silently returns a "not checked" result if the registry is unreachable. */ export declare function checkForUpdate(): Promise; /** * Format and print version info to the console. * Used by `comet init` and `comet update` at the start of command output. */ export declare function printVersionInfo(log: (message: string) => void): Promise; //# sourceMappingURL=version.d.ts.map