/** * Update-check cache + GitHub Releases API client. * * Fetches the latest release tag from GitHub and caches the result for 24 hours * at `{data}/update-check.json`. Network/parse failures are swallowed (returns null) * so the caller can ignore them silently. */ export interface ReleaseInfo { checkedAt: string; latest: string; url: string; } export interface GetLatestVersionOptions { force?: boolean; cachePath?: string; fetch?: typeof globalThis.fetch; now?: () => Date; ttlMs?: number; /** Abort the HTTP request after this many milliseconds. */ timeoutMs?: number; } /** * Timeout for explicit `ref upgrade` runs: the user asked for the network * round-trip, so a slow connection deserves more patience than the notifier. */ export declare const EXPLICIT_UPGRADE_TIMEOUT_MS = 30000; export declare function getLatestVersion(options?: GetLatestVersionOptions): Promise; //# sourceMappingURL=check.d.ts.map