/** * Spanish (bare-tag alias) * * `es` has no single "correct" region, and unlike `fr`, the es-* variants * genuinely diverge in both cardinal ceiling and default currency * (es-ES/EUR, es-MX/MXN, es-US/USD) — closer to a pt-BR/pt-PT split than a * fr-FR/fr-BE one. This file exists so `n2words/es` resolves without * forcing a region subtag anyway, defaulting to es-ES (Spain's variant, the * conventional default for bare `es` across most software/BCP-47 tooling). * It does NOT speak for es-MX or es-US — a caller who cares about Mexican * or US Spanish currency/grammar should import that variant explicitly. * See LANGUAGES.md's "Bare-tag aliases" section for the full rationale. * * `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 './es-ES.js'; export declare const aliasOf = "es-ES"; export type CurrencyOptions = Omit & Required>; /** * Every es-ES currency default except the currency itself. * @type {Omit, 'currency'>} */ export declare const currencyDefaults: Omit, 'currency'>; /** * Converts a numeric value to Spanish currency words. * * Unlike es-ES's, this needs an explicit `currency`: `es` 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 Spanish currency words * @throws {TypeError} If `currency` is omitted, or options are malformed * @example * toCurrency(42.50, { currency: 'EUR' }) // 'cuarenta y dos euros con cincuenta céntimos' */ declare function toCurrency(value: number | string | bigint, options: CurrencyOptions): string; export { toCurrency };