export type GlobalThis = typeof globalThis; export type ProcessArgv = NodeJS.Process['argv']; export type ProcessEnv = NodeJS.ProcessEnv; /** * globalThis object - with pollyfil in case of prehistoric node <12 * @see {@link https://tc39.es/ecma262/multipage/global-object.html#sec-globalthis|globalThis spec - ECMAScript } * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis|globalThis docs - MDN} */ export declare const GLOBAL_THIS: GlobalThis; /** * command-line arguments (pure/iffe wrapped so we can shake the tree) * @see {@link https://nodejs.org/api/process.html#processargv|process.argv - Node.js} * @see {@link https://bellard.org/quickjs/quickjs.html#Global-objects|scriptArgs - QuickJS} * @see {@link https://quickjs-ng.github.io/quickjs/stdlib#scriptargs|scriptArgs - QuickJS-NG} * @see {@link https://docs.deno.com/api/node/process/~/Process#property_argv|process.argv - Deno} * @see {@link https://docs.deno.com/api/deno/~/Deno.CommandOptions#property_args|Deno.args - Deno} */ export declare const ARGV: NodeJS.Process['argv']; export declare const ARGS: string[]; /** * process environment (ENV) variables * @see {@link https://nodejs.org/api/process.html#processenv|process.env - Node.js} * @see {@link https://docs.deno.com/runtime/reference/env_variables/#built-in-deno.env|env - Deno} * @see {@link https://bellard.org/quickjs/quickjs.html#Global-objects|getenviron - QuickJS} * @see {@link https://quickjs-ng.github.io/quickjs/stdlib#getenviron|getenviron - QuickJS-NG} */ export declare const ENV: ProcessEnv; /** * detects if running in the Bun runtime * @see {@link https://bun.sh/docs/api/globals|Bun globals} */ export declare const IS_BUN: boolean; /** * detects if running in the Deno runtime * @see {@link https://docs.deno.com/api/deno/~/Deno|Deno} */ export declare const IS_DENO: boolean; /** * detects if running in the QuickJs runtime * @see {@link https://quickjs-ng.github.io/quickjs/stdlib/#globals} */ export declare const IS_QUICKJS: boolean; /** * detects if running in Node.js * @see {@link https://nodejs.org/api/process.html#processversions|process.versions docs} */ export declare const IS_NODE: boolean; /** * detects if running inside Cloudflare Workers * - Workers expose 'WebSocketPair' and lack 'navigator' * @see {@link https://developers.cloudflare.com/workers/runtime-apis/websockets} */ export declare const IS_CLOUDFLARE_WORKER: boolean; /** * detects if running inside Vercel Edge * @see {@link https://vercel.com/docs/functions/runtimes/edge#check-if-you're-running-on-the-edge-runtime} */ export declare const IS_VERCEL_EDGE: boolean; //# sourceMappingURL=index.d.ts.map