/** * Converts a numeric value to Traditional Chinese words. * * @param {number | string | bigint} value - The numeric value to convert * @param {Object} [options] - Optional configuration * @param {boolean} [options.formal=true] - Use formal/financial numerals * @returns {string} The number in Traditional Chinese words */ export function toCardinal(value: number | string | bigint, options?: { formal?: boolean | undefined; }): string; /** * Converts a numeric value to Traditional Chinese ordinal words. * * @param {number | string | bigint} value - The numeric value to convert (positive integer) * @param {Object} [options] - Optional configuration * @param {boolean} [options.formal=true] - Use formal/financial numerals * @returns {string} The number as ordinal words * @throws {TypeError} If value is not a valid numeric type * @throws {RangeError} If value is negative, zero, or has a decimal part * * @example * toOrdinal(1) // '第壹' * toOrdinal(2) // '第貳' * toOrdinal(1, { formal: false }) // '第一' */ export function toOrdinal(value: number | string | bigint, options?: { formal?: boolean | undefined; }): string; /** * Converts a numeric value to Traditional Chinese currency words (New Taiwan Dollar). * * Uses 圓 (yuan), 角 (jiao, 1/10), 分 (fen, 1/100). * Formal writing adds 整 (zheng) for whole amounts. * * @param {number | string | bigint} value - The currency amount to convert * @param {Object} [options] - Optional configuration * @param {boolean} [options.formal=true] - Use formal/financial numerals * @returns {string} The amount in Traditional Chinese currency words * @throws {TypeError} If value is not a valid numeric type * @throws {Error} If value is not a valid number format * * @example * toCurrency(42) // '肆拾貳圓整' * toCurrency(1.50) // '壹圓伍角整' * toCurrency(42, { formal: false }) // '四十二元整' */ export function toCurrency(value: number | string | bigint, options?: { formal?: boolean | undefined; }): string;