import type { CliInstallMethod } from "../core/cli-types.js"; export interface UpdateCheckCache { lastCheckedAt: string; latestVersion: string; currentVersion: string; } export declare function getUpdateCheckPath(): string; /** * Read cached update check result. Returns null if missing or expired. */ export declare function readUpdateCheck(maxAgeMs?: number): Promise; /** * Check for the latest CLI version and write the result to the cache file. * Runs inline with a short timeout — no child process needed. */ export declare function checkForUpdate(currentVersion: string, installMethod: CliInstallMethod): Promise; /** * Simple semver comparison: returns true if `latest` is newer than `current`. */ export declare function isNewerVersion(current: string, latest: string): boolean; //# sourceMappingURL=update-check.d.ts.map