UNPKG

ccusage-live

Version:

Enhanced Claude Code usage analysis tool with live team monitoring and collaboration features

30 lines (28 loc) 835 B
import { Result } from "@praha/byethrow"; //#region src/update-checker.d.ts /** * 版本比较结果 */ type VersionCheckResult = { currentVersion: string; latestVersion: string; hasUpdate: boolean; updateAvailable?: { newVersion: string; releaseNotes?: string; }; }; /** * 检查是否有可用更新 */ declare function checkForUpdates(packageName?: string, silent?: boolean): Promise<Result.Result<VersionCheckResult, string>>; /** * 显示更新提示信息 */ declare function showUpdateNotification(versionCheck: VersionCheckResult, packageName?: string): void; /** * 执行更新检查并显示结果 */ declare function performUpdateCheck(packageName?: string, silent?: boolean): Promise<void>; //#endregion export { VersionCheckResult, checkForUpdates, performUpdateCheck, showUpdateNotification };