/** * Arabic (bare-tag alias) * * `ar` resolves to ar-SA, currently the only Arabic variant this package * implements. This file exists purely so `n2words/ar` works without * requiring a region subtag; it is not a claim that ar-SA speaks for every * Arabic-speaking region. See LANGUAGES.md's "Bare-tag aliases" section. * * `toCurrency` is the one form this file doesn't forward untouched: a bare * tag names a language, and a default currency belongs to a country, so * `currency` is required here rather than inherited. See * docs/bare-tag-aliases.md's "Bare tags carry no default currency". */ export * from './ar-SA.js'; export declare const aliasOf = "ar-SA"; export type CurrencyOptions = Omit & Required>; /** * Every ar-SA currency default except the currency itself. * @type {Omit, 'currency'>} */ export declare const currencyDefaults: Omit, 'currency'>; /** * Converts a numeric value to Arabic currency words. * * Unlike ar-SA's, this needs an explicit `currency`: `ar` is a language * and has no country to take a default from. * @param {number | string | bigint} value - The currency amount to convert * @param {CurrencyOptions} options - Configuration; `currency` is required * @returns {string} The amount in Arabic currency words * @throws {TypeError} If `currency` is omitted, or options are malformed * @example * toCurrency(42.50, { currency: 'SAR' }) // 'اثنان وأربعون ريالاً وخمسون هللة' */ declare function toCurrency(value: number | string | bigint, options: CurrencyOptions): string; export { toCurrency };