UNPKG

389 BTypeScriptView Raw
1/// <reference types="bn.js" />
2import type { BN } from '../bn/bn.js';
3import type { NumberOptions, ToBigInt, ToBn } from '../types.js';
4/**
5 * @name nToU8a
6 * @summary Creates a Uint8Array object from a bigint.
7 */
8export declare function nToU8a<ExtToBn extends ToBn | ToBigInt>(value?: ExtToBn | BN | bigint | number | null, { bitLength, isLe, isNegative }?: NumberOptions): Uint8Array;