/** * Converts a numeric value to Thai words. * * @param {number | string | bigint} value - The numeric value to convert * @returns {string} The number in Thai words */ export function toCardinal(value: number | string | bigint): string; /** * Converts a numeric value to Thai ordinal words. * * @param {number | string | bigint} value - The numeric value to convert (positive integer) * @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(10) // 'ที่สิบ' */ export function toOrdinal(value: number | string | bigint): string; /** * Converts a numeric value to Thai currency words (Baht). * * Thai Baht uses satang as subunit (100 satang = 1 baht). * When whole amounts, adds "ถ้วน" (exactly) suffix. * * @param {number | string | bigint} value - The currency amount to convert * @returns {string} The amount in Thai 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(-5) // 'ลบห้าบาทถ้วน' */ export function toCurrency(value: number | string | bigint): string;