UNPKG

376 BTypeScriptView Raw
1/// <reference types="bn.js" />
2import type { BN } from '../bn/bn.js';
3import type { ToBigInt, ToBn } from '../types.js';
4/**
5 * @name nToBigInt
6 * @summary Creates a bigInt value from a BN, bigint, string (base 10 or hex) or number input.
7 */
8export declare function nToBigInt<ExtToBn extends ToBigInt | ToBn>(value?: ExtToBn | BN | bigint | string | number | null): bigint;