import { type InstallMethod, type SecretRequester, type UpdateProgress } from "./update-install.js"; export declare const UPDATE_CHECK_INTERVAL_MS: number; export declare function getCurrentVersion(): string; /** Latest published version without the leading `v`, or undefined if unknown. */ export declare function fetchLatestVersion(): Promise; /** Why an update check cannot run right now, if it cannot. */ export declare function updateCheckDisabledReason(): string | undefined; /** Non-blocking startup check — prints a notice if a new version exists */ export declare function checkForUpdateSilent(): void; /** Resolve how this installation was put on the machine (npm/bun/brew/…). */ export declare function detectInstallMethodOrDev(): Promise; /** Download and install the given version using the detected method. */ export declare function installUpdate(version: string, log?: (line: string) => void, stdio?: "inherit" | "pipe", onProgress?: (progress: UpdateProgress) => void, signal?: AbortSignal, requestSecret?: SecretRequester): Promise<{ ok: boolean; message: string; method: string; needsRestart: boolean; }>; /** Interactive `clai update` command — performs the upgrade in-process. */ export declare function runUpdate(): Promise;