/** * Updater - npm registry primitives for the automatic update check. * * The orchestration (throttling, cache, the user-facing nudge) lives in * update-notifier.ts; this module just provides the building blocks. */ /** npm registry endpoint for the package's latest published version. */ export declare const REGISTRY_URL: string; /** Default timeout for the registry request, in milliseconds. */ export declare const FETCH_TIMEOUT_MS = 3000; /** * Compare two dotted version strings. * Returns 1 if a > b, -1 if a < b, 0 if equal. Non-numeric parts count as 0. */ export declare function compareVersions(a: string, b: string): number; /** * Fetch the latest published version string from the npm registry. * Aborts after `timeoutMs` so a slow network never stalls the CLI. */ export declare function fetchLatestVersion(url?: string, timeoutMs?: number): Promise; /** * Install the given version globally, showing a progress spinner. * Returns the process exit code (0 on success, 1 on failure). */ export declare function installUpdate(latest: string): Promise; //# sourceMappingURL=updater.d.ts.map