UNPKG

464 BTypeScriptView Raw
1/// <reference types="bn.js" />
2import type { BN } from '../bn/bn.js';
3import type { ToBn } from '../types.js';
4interface Options {
5 /**
6 * @description The locale to use
7 */
8 locale?: string;
9}
10/**
11 * @name formatNumber
12 * @description Formats a number into string format with thousand separators
13 */
14export declare function formatNumber<ExtToBn extends ToBn>(value?: ExtToBn | BN | bigint | number | null, { locale }?: Options): string;
15export {};