UNPKG

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