/** * Auto-update version checking and update execution. */ export interface UpdateCheckResult { currentVersion: string; latestVersion: string; updateAvailable: boolean; } export interface UpdateResult { success: boolean; previousVersion: string; newVersion: string; error?: string; } export interface VersionInfo { package: string; version: string; bun: string; os: string; arch: string; configPath: string; } export interface DoctorCheck { name: string; status: "ok" | "warn" | "error"; message: string; } /** * Compare two semver strings. Returns true if `latest` is newer than `current`. */ export declare function isNewerVersion(current: string, latest: string): boolean; /** * Check npm registry for latest version. */ export declare function checkForUpdate(currentVersion: string): Promise; /** * Perform the update via bun global install. */ export declare function performUpdate(): Promise; export declare function getCurrentVersion(): string; export declare function setCurrentVersion(version: string): void; /** * Get full version info for /version command. */ export declare function getVersionInfo(): VersionInfo; /** * Run diagnostic checks for /doctor command. */ export declare function runDiagnostics(config?: any): Promise; //# sourceMappingURL=version-check.d.ts.map