js-randomness-predictor
Version:
Predict Math.random output in Node, Deno, Bun, Chrome, Firefox, and Safari
14 lines (13 loc) • 581 B
TypeScript
import { PredictorArgs, PredictorResult } from "../types.js";
/**
* This is the "core" of our CLI.
*
* DRY RUN:
* - You can use an env var "process.env.JSRP_DRY_RUN = '1'" to only test conditions up to the point where
* we are about to create a predictor, but we don't actually create one.
* - A dry run DOES NOT RUN THE PREDICTOR, so you will not have any predictions in results.
*
* @param {PredictorArgs} argv : the flags used by the cli.
* @returns {Promise<PredictorResult>}
*/
export declare function runPredictor(argv: PredictorArgs): Promise<PredictorResult>;