export interface UpdateInfo { currentVersion: string; latestVersion: string; hasUpdate: boolean; publishedAt?: string; features: string[]; fixes: string[]; releaseNotes?: string; } export declare const CURRENT_VERSION = "1.3.0"; /** * Compares two semver strings (e.g. "1.0.2" vs "1.0.3"). * Returns true if remoteVersion is strictly greater than localVersion. */ export declare function isNewerVersion(localVersion: string, remoteVersion: string): boolean; /** * Queries the npm registry for the latest published anilink-tui version. * Includes a strict 2.5s timeout so it never stalls startup if offline. */ export declare function checkForUpdates(currentVersion?: string): Promise; /** * Runs `npm install -g anilink-tui@latest` in the background to update the CLI tool. */ export declare function executeCliUpdate(): Promise<{ success: boolean; output: string; }>;