UNPKG

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