export declare const NPM_PACKAGE = "@yoxiang/cli"; export declare const NPM_REGISTRY = "https://registry.npmjs.org"; export type UpdateAgent = "codex" | "claude" | "all"; export type UpdateChannel = "latest"; export type UpdateCheck = { channel: UpdateChannel; current_ahead: boolean; current_version: string; target_version: string; update_available: boolean; }; export type UpdateNotice = { update_available: true; current_version: string; latest_version: string; command: "yoxiang update --agent codex"; }; export type UpdateNoticeOptions = { cachePath?: string; intervalMs?: number; failureIntervalMs?: number; nowMs?: number; registry?: string; timeoutMs?: number; }; export declare const UPDATE_NOTICE_INTERVAL_MS: number; export declare const UPDATE_NOTICE_FAILURE_INTERVAL_MS: number; export declare const UPDATE_NOTICE_TIMEOUT_MS = 1500; export declare function checkForUpdate(currentVersion: string, channel: UpdateChannel, registry?: string, signal?: AbortSignal): Promise; export declare function updateNoticePath(env?: NodeJS.ProcessEnv): string; export declare function checkForUpdateNotice(currentVersion: string, options?: UpdateNoticeOptions): Promise; export declare function installGlobalUpdate(channel: UpdateChannel, agent: UpdateAgent, registry?: string): Promise; export declare function compareVersions(left: string, right: string): number;