import { Readable } from 'node:stream'; interface VersionInfo { latest: string; minimumFromRegistry: string | null; } declare function checkNodeVersion(enginesNode: string, currentVersion: string): string | null; declare function compareSemver(a: string, b: string): number; declare function isPreReleaseVersion(version: string): boolean; declare function preReleaseWarning(version: string): string | null; declare function fetchVersionInfo(): Promise; declare function handlePreflightVersionCheck(info: VersionInfo | null): "abort" | "nudge" | "ok"; type VersionFreshness = "current" | "outdated" | "unsupported" | "unknown"; declare function classifyVersionFreshness(currentVersion: string, info: VersionInfo | null): VersionFreshness; declare function isInternalUser(cwd?: string): boolean; declare function isInteractive(): boolean; declare function promptYesNo(question: string, input?: Readable): Promise; declare function classifyErrorArea(msg: string): string | null; type VersionVerdict = { action: "forced_update"; currentVersion: string; minimumVersion: string; } | { action: "suggest_update"; currentVersion: string; latestVersion: string; internal: boolean; } | { action: "bug_report"; internal: boolean; } | { action: "none"; }; declare function assessVersion(currentVersion: string, info: VersionInfo, internal: boolean): VersionVerdict; declare function handleFailedDeploy(error: Error): Promise; export { type VersionFreshness, type VersionVerdict, assessVersion, checkNodeVersion, classifyErrorArea, classifyVersionFreshness, compareSemver, fetchVersionInfo, handleFailedDeploy, handlePreflightVersionCheck, isInteractive, isInternalUser, isPreReleaseVersion, preReleaseWarning, promptYesNo };