declare function formatDollar(price?: number | null): string; declare function formatDollarCompact(price?: number | null): string; declare function formatNumber(amount: number | null | undefined | string, maximumFractionDigits?: number, compact?: boolean): string; /** * Convert ETH values to human readable formats * @param amount An ETH amount * @param maximumFractionDigits Number of decimal digits * @param decimals Number of decimal digits for the atomic unit * @param compact A boolean value used to specify the formatting notation * @returns returns the ETH value as a `string` or `-` if the amount is `null` or `undefined` */ declare function formatBN(amount: string | number | bigint | null | undefined, maximumFractionDigits: number, decimals?: number, compact?: boolean, formatOptionsParam?: Intl.NumberFormatOptions): string; declare function truncateBalance(balance: string): number; /** * Formats a number represented by a string, ensuring the total length does not exceed a specified number of characters. * @param amount The string to format * @param maxLength The maximum total length of the string representation. * @returns A plain string representation of the number, trimmed to the specified length. */ declare function formatFixedLength(amount: string, maxLength: number): string; /** * Formats a number to 6 total digits with special handling for decimals. * For numbers >= 1: rounds to 6 significant digits (e.g., 289.97568 → 289.976, 1234.5678 → 1234.57) * For numbers < 1: truncates to "0." + 5 digits (e.g., 0.00056 → 0.00056, 0.0001234567 → 0.00012) * @param value The number to format (as number, string, or bigint) * @param decimals Optional decimals for bigint conversion (default 18) * @returns Formatted string with 6 total digits */ declare function formatSignificantDigits(value: number | string | bigint | null | undefined, decimals?: number): string; /** * Converts basis points to percentage string * @param bps Basis points as string (e.g. "250" for 2.5%) * @returns Formatted percentage string or undefined */ declare function convertBpsToPercent(bps?: string): string | undefined; export { formatDollar, formatDollarCompact, formatBN, formatFixedLength, formatNumber, formatSignificantDigits, truncateBalance, convertBpsToPercent }; //# sourceMappingURL=numbers.d.ts.map