/** * CSV Number Utilities * * Functions for parsing and formatting numbers in CSV files, * with support for different decimal separators (e.g., European format). */ /** * Decimal separator type. * - "." - Standard decimal point (default) * - "," - European decimal comma */ export type DecimalSeparator = "." | ","; /** * Format a number for CSV output with the specified decimal separator. * * @param value - The number to format * @param decimalSeparator - The decimal separator to use * @returns Formatted string representation * * @example * formatNumberForCsv(3.14, ".") // "3.14" * formatNumberForCsv(3.14, ",") // "3,14" */ export declare function formatNumberForCsv(value: number, decimalSeparator: DecimalSeparator): string; /** * Parse a CSV string value as a number with the specified decimal separator. * * @param value - The string value to parse * @param decimalSeparator - The decimal separator used in the value * @returns Parsed number (may be NaN if invalid) * * @example * parseNumberFromCsv("3.14", ".") // 3.14 * parseNumberFromCsv("3,14", ",") // 3.14 */ export declare function parseNumberFromCsv(value: string, decimalSeparator: DecimalSeparator): number;