/** * Convert a bigint to a string, scaled down to the specified decimals. */ export declare function balanceToString(value: bigint, coinDecimals: number): string; /** * Convert a string to a bigint, scaled up to the specified decimals. */ export declare function stringToBalance(value: string, coinDecimals: number): bigint; /** * Format a number into a readable string. * * - 'standard' format: * - If the number is < 1000, show 2 decimals (e.g. '123.45') * - If the number is >= 1000, don't show any decimals (e.g. '1,234') * * - 'compact' format: * - If the number is < 1 million, use 'standard' format * - If the number is >= 1 million, use word notation (e.g. '540.23M', '20.05B') */ export declare function formatNumber(num: number, format?: "standard" | "compact"): string; /** * Format a bigint into a readable string, scaled down to the specified decimals. * * - 'standard' format: * - If the number is < 1000, show 2 decimals (e.g. '123.45') * - If the number is >= 1000, don't show any decimals (e.g. '1,234') * * - 'compact' format: * - If the number is < 1 million, use 'standard' format * - If the number is >= 1 million, use word notation (e.g. '540.23M', '20.05B') */ export declare function formatBalance(big: bigint, decimals: number, format?: "standard" | "compact"): string;