/** * Number formatting utilities with thousand separators. * Supports multiple grouping styles: thousand (Western), lakh (Indian), wan (Chinese) */ import { ThousandStyle } from '@/types'; /** * Formats a numeric string with thousand separators based on the specified group style. * * @param value - The numeric string to format (e.g., "1234567") * @param separator - The separator character to use (e.g., ",") * @param groupStyle - The grouping style: 'none' (no separators), 'thousand' (1,234,567), 'lakh' (12,34,567), or 'wan' (123,4567) * @param enableLeadingZeros - Whether to preserve leading zeros * @param decimalSeparator - The decimal separator character (default: '.') * @returns The formatted string with separators * * @example * formatWithSeparators("1234567", ",", "thousand") // "1,234,567" * formatWithSeparators("1234567", ",", "lakh") // "12,34,567" * formatWithSeparators("1234567", ",", "wan") // "123,4567" * formatWithSeparators("1234.56", ",", "thousand", false, '.') // "1,234.56" * formatWithSeparators("1234,56", ",", "thousand", false, ',') // "1,234,56" */ export declare function formatWithSeparators(value: string, separator: string, groupStyle?: ThousandStyle, enableLeadingZeros?: boolean, decimalSeparator?: string): string;