/** * Converts a numeric value to Malay words. * * @param {number | string | bigint} value - The numeric value to convert * @returns {string} The number in Malay words */ export function toCardinal(value: number | string | bigint): string; /** * Converts a numeric value to Malay 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) // 'pertama' * toOrdinal(2) // 'kedua' * toOrdinal(10) // 'kesepuluh' */ export function toOrdinal(value: number | string | bigint): string; /** * Converts a numeric value to Malay currency words (Ringgit). * * Malaysian Ringgit uses sen as subunit (100 sen = 1 ringgit). * * @param {number | string | bigint} value - The currency amount to convert * @returns {string} The amount in Malay 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) // 'empat puluh dua ringgit' * toCurrency(1.50) // 'satu ringgit lima puluh sen' * toCurrency(-5) // 'minus lima ringgit' */ export function toCurrency(value: number | string | bigint): string;