/** * Indonesian (Indonesia) language converter * * CLDR: id-ID | Indonesian as used in Indonesia * * Key features: * - "Se-" prefix for 100 (seratus) and 1000 (seribu) * - Regular patterns (puluh for tens, ratus for hundreds) * - Teens with "belas" suffix * - Indonesian uses "satu juta" (not "sejuta") for millions+ */ export declare const cardinalMax: bigint; export declare const ordinalMax: bigint; export declare const currencyMax: bigint; /** * Converts a numeric value to Indonesian words. * @param {number | string | bigint} value - The numeric value to convert * @returns {string} The number in Indonesian words */ declare 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' */ declare function toOrdinal(value: number | string | bigint): string; export type CurrencyOptions = { /** * - ISO 4217 currency code to name the amount in */ currency?: import('./utils/currency-vocab.js').IdCurrency; }; /** * @typedef {object} CurrencyOptions * @property {import('./utils/currency-vocab.js').IdCurrency} [currency] - ISO 4217 currency code to name the amount in */ /** @type {Required} */ export declare const currencyDefaults: Required; /** @type {{ currency: ReadonlyArray['currency']> }} */ export declare const currencyValues: { currency: ReadonlyArray['currency']>; }; /** * Converts a numeric value to Indonesian currency words (Rupiah). * * Indonesian Rupiah has no everyday minor unit (sen are historical) — a * fractional amount throws RangeError rather than being silently rounded * away. * @param {number | string | bigint} value - The currency amount to convert * @param {CurrencyOptions} [options] - Optional configuration * @returns {string} The amount in Indonesian currency words * @throws {TypeError} If value is not a valid numeric type * @throws {RangeError} If value is not a valid number format, or has a fractional part * @example * toCurrency(42) // 'empat puluh dua rupiah' * toCurrency(1000) // 'seribu rupiah' * toCurrency(-5) // 'min lima rupiah' */ declare function toCurrency(value: number | string | bigint, options?: CurrencyOptions): string; export { toCardinal, toOrdinal, toCurrency };