/** * Bot /upgrade command — check GitHub for latest release, install, restart. * * Replaces the complex update-cli pipeline with a simple: * 1. Check GitHub releases (+ npm fallback) * 2. npm install -g the tarball or package * 3. Restart gateway + bot service * * Surfaces: Telegram /upgrade, Discord /upgrade, TUI /upgrade */ type InstallSource = "github" | "npm" | "unknown"; export interface UpgradeResult { success: boolean; message: string; fromVersion?: string; toVersion?: string; needsRestart?: boolean; error?: string; } type ProgressCallback = (message: string) => Promise; export declare function performBotUpgrade(onProgress: ProgressCallback): Promise; /** * Check for available updates without performing upgrade. */ export declare function checkBotUpdate(): Promise<{ available: boolean; current: string; latest?: string; source?: InstallSource; }>; export {};