/** * Elide APIs * * @example * * ```js * Elide.version // returns elide's version * ``` * * This module aliases `globalThis.Elide`. */ declare module "elide" { // Nothing yet. } type Platform = "darwin" | "linux" | "win32"; type Architecture = "arm64" | "x64"; type ProcessInfo = { readonly platform: Platform; readonly arch: Architecture; }; /** * Elide Global * * The `Elide` global is always defined when running JavaScript on Elide. */ declare var Elide: { /** * Elide's version. * * The version of the currently-running copy of Elide. */ version: string; /** * Debug features. * * Whether this copy of Elide was built with debugging features enabled. */ debug: boolean; /** * Release. * * Whether this copy of Elide was built with release optimizations. */ release: boolean; /** * Build mode. * * Mode string for this build of Elide; for example, `dev`. */ buildMode: string; /** * Target architecture. * * Architecture target under which this Elide binary was built; for example, `x86-64-v3`, or `native`, or * `compatibility` (the default). */ targetArchitecture: boolean; };