/** * Runtime detection — identify whether opencli is running under Node.js or Bun. * * Bun injects `globalThis.Bun` at startup, making detection trivial. * This module centralises the check so other code can adapt behaviour * (e.g. logging, diagnostics) without littering runtime sniffing everywhere. */ export type Runtime = 'bun' | 'node'; export declare const MIN_SUPPORTED_NODE_MAJOR = 20; /** * Detect the current JavaScript runtime. */ export declare function detectRuntime(): Runtime; /** * Return a human-readable version string for the current runtime. * Examples: "v22.13.0" (Node), "1.1.42" (Bun) */ export declare function getRuntimeVersion(): string; /** * Return a combined label like "node v22.13.0" or "bun 1.1.42". */ export declare function getRuntimeLabel(): string; /** * Parse a Node.js version string like "v22.13.0" and return its major version. * Returns null for non-Node or malformed inputs. */ export declare function parseNodeMajor(version: string): number | null; /** * Whether the given Node.js version satisfies the current minimum support policy. */ export declare function isSupportedNodeVersion(version?: string): boolean;