/** * Queries the npm registry for new miladyai versions on the user's * configured release channel (stable/beta/nightly). */ import type { ReleaseChannel, UpdateConfig } from "../config/types.milady"; /** npm dist-tag corresponding to each release channel. */ export declare const CHANNEL_DIST_TAGS: Readonly>; export interface UpdateCheckResult { updateAvailable: boolean; currentVersion: string; latestVersion: string | null; channel: ReleaseChannel; distTag: string; /** True when the result came from the interval cache, not a live fetch. */ cached: boolean; error: string | null; } /** Resolve the effective release channel from config, env, or default. */ export declare function resolveChannel(cfg: UpdateConfig | undefined): ReleaseChannel; /** * Check whether a newer version is available. * Respects the check interval; pass `force: true` to bypass. */ export declare function checkForUpdate(options?: { force?: boolean; }): Promise; /** Returns the latest published version for each channel. */ export declare function fetchAllChannelVersions(): Promise>; //# sourceMappingURL=update-checker.d.ts.map