/** * Converts a numeric value to Indonesian words. * * @param {number | string | bigint} value - The numeric value to convert * @returns {string} The number in Indonesian words */ export function toCardinal(value: number | string | bigint): string; /** * Converts a numeric value to Indonesian 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 Indonesian currency words (Rupiah). * * Indonesian Rupiah has no subunit in modern usage (sen are historical). * Amounts are rounded to whole rupiah. * * @param {number | string | bigint} value - The currency amount to convert * @returns {string} The amount in Indonesian 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 rupiah' * toCurrency(1000) // 'seribu rupiah' * toCurrency(-5) // 'min lima rupiah' */ export function toCurrency(value: number | string | bigint): string;