js-randomness-predictor
Version:
Predict Math.random output in Node, Deno, Bun, Chrome, Firefox, and Safari
16 lines (15 loc) • 1.15 kB
TypeScript
import { Runtime, BrowserRuntime, Engine } from "./types.js";
/** The env var KEY (not the value) that determines which runtime the CLI uses. */
export declare const EXECUTION_RUNTIME_ENV_VAR_KEY = "JSRP_RUNTIME";
export declare const DEFAULT_NUMBER_OF_PREDICTIONS = 10;
export declare const V8_MAX_PREDICTIONS = 64;
export declare const RUNTIMES: readonly ["node", "bun", "deno", "chrome", "firefox", "safari"];
export declare const SERVER_RUNTIMES: readonly ["node", "bun", "deno"];
export declare const JAVASCRIPT_ENGINES: readonly ["v8", "javascriptcore", "spidermonkey"];
export declare const BROWSER_RUNTIMES: readonly ["chrome", "safari", "firefox"];
export declare const IS_SERVER_RUNTIME: Record<Runtime, boolean>;
export declare const IS_BROWSER_RUNTIME: Record<Runtime, boolean>;
export declare const RUNTIME_ENGINE: Record<Runtime, Engine>;
export declare const ENGINE_RUNTIME: Record<"v8" | "javascriptcore" | "spidermonkey", ("node" | "bun" | "deno" | "chrome" | "firefox" | "safari")[]>;
export declare const MIN_SEQUENCE_LENGTH: Record<Runtime, number>;
export declare const SUPPORTED_BROWSER_RUNTIMES: Record<BrowserRuntime, boolean>;