UNPKG

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