/** * Update-check notifier. * * Kicks off an async version check at CLI entry, then prints a one-line notice * to stderr after the user's command completes — but only if the check has * already resolved by then. The user's command is never delayed. */ import { type ReleaseInfo } from "./check.js"; export interface NotifierOptions { isTty?: boolean; env?: NodeJS.ProcessEnv; currentVersion?: string; getLatest?: () => Promise; output?: NodeJS.WritableStream; /** When true, suppress the check (e.g. user passed `--no-update-check`). */ noUpdateCheck?: boolean; } /** * Kicks off the async update check. Returns a promise that resolves once the * check is done (or immediately, if the check was suppressed). Production * callers typically ignore the returned promise; tests can await it. */ export declare function maybeStartUpdateCheck(command: string, options?: NotifierOptions): Promise; /** * Returns true when `latest` is strictly newer than `current` per semver * precedence. Falls back to plain inequality when either side is unparseable, * matching the old "notify on any mismatch" behavior for exotic versions. */ export declare function isNewerVersion(latest: string, current: string): boolean; export declare function flushUpdateNotice(): void; //# sourceMappingURL=notifier.d.ts.map