UNPKG

359 BTypeScriptView Raw
1/// <reference types="bn.js" />
2import type { BN } from '../bn/bn';
3import type { NumberOptions, ToBigInt, ToBn } from '../types';
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, options?: NumberOptions): Uint8Array;