/** * Format a number with a specific style. * @example * Basic usage * ```js * const string = formatNumber(1234.567, { sign: true, round: true }) * // returns "+1,235" * ``` * @param number The number to format. * @param options An object containing the formatting options. * @param options.style The style to use for formatting. Can be "cbc" or "rc". * @param options.sign If true, "-" or "+" are added in front of the number. * @param options.round If true, the number will be rounded. * @param options.decimals The number of decimals to keep when rounding. * @param options.significantDigits The number of significant digits to keep. * @param options.fixed If true, display a fixed number of decimals by keeping 0 digits. * @param options.nearestInteger The base to use to round the number. * @param options.prefix A string to add before the number. * @param options.suffix A string to add after the number. * * @category Formatting */ export default function formatNumber(number: number, options?: { style?: "cbc" | "rc"; sign?: boolean; round?: boolean; decimals?: number; significantDigits?: number; fixed?: boolean; nearestInteger?: number; prefix?: string; suffix?: string; }): string;