/** * Version check + update notice for the login command */ /** * Check if a newer CLI version is available and notify the user. Also recommends * the Node.js version the CLI is locked to (from `engines.node`) when the running * Node major differs. * * This is informational only — it never prompts and never installs. It just tells * the user what a newer version / supported Node looks like and the command to run. * Returns silently if everything is current or the check fails. * * @param noColor - disable ANSI colors in the output. * @param runningNodeVersion - the active Node version; injectable for testing. */ export declare function checkAndNotifyUpdate(noColor: boolean, runningNodeVersion?: string): Promise; /** * Returns true if `latest` is strictly newer than `current` using semver ordering. */ export declare function isNewerVersion(current: string, latest: string): boolean; /** * Extract every supported Node major from an `engines.node` range. The canonical * form is `"24.x || 25.x || 26.x"` (→ [24, 25, 26]); for a bare lower bound or a * semver range (e.g. ">=24" or ">=24.0.0 <25.0.0") it falls back to the first * number (→ [24]). Returns an empty array when nothing is parseable. */ export declare function parseSupportedNodeMajors(engineRange: unknown): number[]; /** * Build the Node-version recommendation lines, or null when no recommendation is * needed (the running major is already supported, or the supported set is empty). * * @param supportedMajors - the Node majors the CLI supports (from `engines.node`). * @param runningVersion - the active Node version (with or without a leading "v"). */ export declare function nodeVersionNotice(supportedMajors: number[], runningVersion: string): string[] | null; //# sourceMappingURL=version-check.d.ts.map