export declare const PKG = "agency-orchestrator"; /** 简单 semver 比较:a > b 返回 true */ export declare function isNewer(a: string, b: string): boolean; /** 拉取 npm 上的最新版本号;网络失败/超时返回 null(静默)。 */ export declare function fetchLatestVersion(timeoutMs?: number): Promise; /** * 根据 CLI 自身的安装路径推断该用哪个包管理器升级。 * 纯函数,便于测试;可用 AO_UPGRADE_CMD 环境变量整条覆盖。 * @param pkgSpec 形如 "agency-orchestrator@1.2.3" * @param selfPath 当前模块路径(fileURLToPath(import.meta.url)) */ export declare function detectUpgradeCommand(pkgSpec: string, selfPath: string, env?: NodeJS.ProcessEnv): string; /** * 启动时调用:立即返回。 * - 有缓存且最新版更高 → 立刻打印提示 * - 缓存过期或缺失 → 后台异步拉取新版本存缓存(本次不提示) */ export declare function scheduleUpdateCheck(currentVersion: string): void;