/** * Minimum full Node.js version (major.minor.patch) the server supports. Kept in * lockstep with the `engines.node` field in package.json. * * A full version, not just a major, because the floor is dictated by a * transitive dependency: undici (via cheerio) declares `engines.node * >=22.19.0` and, at load time, destructures `markAsUncloneable` from * `node:worker_threads` — an export that only exists from Node 22.10.0 onward. * On an older 22.x (e.g. 22.0.0) undici crashes with a cryptic * `webidl.util.markAsUncloneable is not a function` deep in its cache module, * which is exactly the inscrutable-crash-instead-of-clear-message failure the * preflight shim (src/index.ts) exists to prevent (issue #455). A major-only * gate waved those runtimes straight into that crash, so the gate compares the * full version. Bump this in step with undici's `engines.node` floor. */ export declare const MINIMUM_NODE_VERSION = "22.19.0"; /** * Return a human-readable error message when `currentVersion` is older than * `minimumVersion`, otherwise `undefined`. * * Pure (no I/O) so the version gate is exhaustively unit-testable by passing * `process.versions.node`-shaped strings directly. A leading "v" is tolerated. * An unparseable version is treated as unsupported rather than waved through — * we would rather show the upgrade message than hand control to a runtime we * could not identify. * * Authored in syntax that parses on very old Node (no optional chaining, no * import attributes): this module sits in the shim's static import graph, so a * parse error here would reintroduce the very cryptic crash the shim exists to * prevent. */ export declare function nodeVersionError(currentVersion: string, minimumVersion: string): string | undefined; //# sourceMappingURL=preflight.d.ts.map