export interface CurrencyInfo { currency: { name: string; to_minor: number; symbol: string; code: string; }; format: { thousands_separator: string; decimal_separator: string; pattern: string; has_decimals: boolean; }; } export declare const defaultCurrencyInfo: { currency: { name: string; to_minor: number; symbol: string; code: string; }; format: { thousands_separator: string; decimal_separator: string; pattern: string; has_decimals: boolean; }; }; export interface FormatCurrencyOptions { /** Add explicit sign (+ or -). By default minus is added only for negative numbers. */ explicitSign?: boolean; /** Override amount of digits after decimal point. By default it's based on currency's "to_minor" and "has_decimals". */ precision?: number; /** * Format number using abbreviated units e.g. $15.0K, $15.0M. Specify units starting from thousands, e.g. * ["K", "M", "B", "T"] */ units?: string[]; /** Strip trailing zeros, e.g. 10.00 -> 10, 10.50 -> 10.5 */ stripZeros?: boolean; /** Add currency code as a prefix, e.g. USD $10.00 */ codePrefix?: boolean; } export declare function formatCurrency(cinfo: CurrencyInfo, value: number, opts?: FormatCurrencyOptions): string;