import * as childProcess from "node:child_process"; import type { CliSurface } from "./cli.js"; export interface UpdateCheckCache { checkedAt: string; currentVersion: string; latestVersion: string; } export interface UpdateStatus { currentVersion: string; latestVersion: string | null; updateAvailable: boolean; cachePath: string; } interface UpdateStatusOptions { bypassCache?: boolean; } export interface UpdatePlan { mode: "auto" | "manual"; command: string; reason: string | null; } declare function resolveUpdateCachePath(): string; declare function compareVersions(a: string, b: string): number; declare function readUpdateCache(): UpdateCheckCache | null; declare function shouldSkipUpdateCheck(argv: string[], surface: CliSurface): boolean; export declare function getUpdateStatus(options?: UpdateStatusOptions): Promise; export declare function detectUpdatePlan(argv0?: string): UpdatePlan; export declare function runUpdateCommand(checkOnly: boolean): Promise; export declare function maybePrintUpdateNotice(argv: string[], surface: CliSurface): Promise; export declare const updateCheckInternals: { compareVersions: typeof compareVersions; readUpdateCache: typeof readUpdateCache; resolveUpdateCachePath: typeof resolveUpdateCachePath; shouldSkipUpdateCheck: typeof shouldSkipUpdateCheck; detectUpdatePlan: typeof detectUpdatePlan; runtime: { spawn: typeof childProcess.spawn; execFileSync: typeof childProcess.execFileSync; moduleRoot: string; }; }; export {}; //# sourceMappingURL=update-check.d.ts.map