/**
 * Check for updates at CLI startup. Two-phase approach:
 *
 * Phase 1 (instant): If a previous background check found a newer version,
 *   kick off a background update now. Non-blocking.
 *
 * Phase 2 (async): Fire off a background version check for the *next* startup.
 *
 * Returns a message to display, or null.
 */
export declare function checkAndAutoUpdate(currentVersion: string): string | null;
/**
 * Read the current state file and report whether a newer version has been
 * downloaded / is pending install. Used by the TUI to show a persistent
 * "update ready" indicator in the status row.
 */
export declare function getPendingUpdate(currentVersion: string): {
    latestVersion: string;
} | null;
/**
 * Start periodic update checks during a long-running session.
 * Checks every hour. If an update is found, calls `onUpdate` with a message.
 */
export declare function startPeriodicUpdateCheck(currentVersion: string, onUpdate: (message: string) => void): void;
/**
 * Stop periodic update checks.
 */
export declare function stopPeriodicUpdateCheck(): void;
//# sourceMappingURL=auto-update.d.ts.map