import { type InstallMethod } from './install-method.js'; export interface AvailableUpdate { currentVersion: string; latestVersion: string; installMethod: InstallMethod; notice: string; } type Fetcher = (input: string | URL | Request, init?: RequestInit) => Promise; interface UpdateCheckOptions { currentVersion?: string; installMethod?: InstallMethod; fetch?: Fetcher; timeoutMs?: number; } interface ShouldCheckOptions { json: boolean; stderrIsTTY?: boolean; env?: NodeJS.ProcessEnv; entryPath?: string; } export declare function shouldCheckForUpdates({ json, stderrIsTTY, env, entryPath, }: ShouldCheckOptions): boolean; /** * Return an available update for the running installation channel. * Network, timeout, registry, and parsing errors are intentionally silent. */ export declare function checkForUpdates(options?: UpdateCheckOptions): Promise; export {};