export declare const UPDATE_COMMAND = "npm install -g @cargo-ai/cli@latest"; export type UpdateCache = { /** Epoch milliseconds of the last successful registry check. */ lastCheck: number; /** Latest version reported by the npm registry at that time. */ latestVersion: string; }; /** * Fetch the latest published version of the CLI from the npm registry. * Throws on network error, timeout, or unexpected response shape — callers * decide whether to surface or swallow the failure. */ export declare function fetchLatestVersion(timeoutMs?: number): Promise; /** * Compare two semver-ish strings. Returns 1 if `a > b`, -1 if `a < b`, 0 if * equal. Only the major.minor.patch core is compared numerically; a version * carrying a prerelease tag (e.g. `1.2.0-beta.1`) ranks below the same core * without one, matching semver precedence rules. */ export declare function compareSemver(a: string, b: string): number; /** True when `current` is strictly older than `latest`. */ export declare function isOutdated(current: string, latest: string): boolean; export declare function readUpdateCache(): UpdateCache | undefined; export declare function writeUpdateCache(cache: UpdateCache): void; //# sourceMappingURL=version.d.ts.map