import { GitFetchOptions } from './git-fetch'; import { RegistryOptions } from './registry'; interface UpdateCheckCommonOptions { /** Version currently in use. */ currentVersion: string; /** * Semver range the installed harness supports (`compatibleSkillsRange`). * Newer releases outside this range are reported but never recommended. */ compatibleRange?: string; /** Cache file (e.g. `harnessDirs().updateCheckFile`). */ cacheFile: string; /** Re-query the registry only after this long (default 24h). */ ttlMs?: number; now?: () => number; } export interface UpdateCheckOptions extends RegistryOptions, UpdateCheckCommonOptions { pkg: string; } export interface GitUpdateCheckOptions extends Pick, UpdateCheckCommonOptions { } export interface UpdateCheckResult { checkedAt: number; /** True when this result came from the cache file, not the registry. */ fromCache: boolean; currentVersion: string; /** Newest published version overall. */ latestVersion: string; /** Newest version inside compatibleRange — the one an updater may adopt. */ latestCompatible: string | null; /** True when latestCompatible is newer than currentVersion. */ updateAvailable: boolean; /** True when a newer release exists but only outside compatibleRange. */ harnessUpgradeRequired: boolean; } /** * Check the registry for newer skill releases, caching results on disk so * repeated sessions don't hit the network. Registry failures fall back to the * cached result (stale ok) or report "no update" — never throw. */ export declare function checkForSkillsUpdate(options: UpdateCheckOptions): Promise; /** * Same update check against a GitHub repo's semver tags instead of an npm * registry (the skills repo is just a git repository, released by tagging). */ export declare function checkForSkillsUpdateFromGit(options: GitUpdateCheckOptions): Promise; export {};