/** * Croatian (Croatia) language converter * * CLDR: hr-HR | Croatian as used in Croatia * * Key features: * - Three-form pluralization (one/few/many) * - Gender by scale word: tisuća and the -arda forms (milijarda, bilijarda, ...) * are feminine; the -un forms (milijun, bilijun, ...) are masculine * - Irregular hundreds (dvjesto, tristo, etc.) * - Long scale naming with -ard forms */ export declare const cardinalMax: bigint; export declare const ordinalMax: bigint; export declare const currencyMax: bigint; export type CardinalOptions = { /** * - Grammatical gender */ gender?: ('masculine' | 'feminine'); }; /** * @typedef {object} CardinalOptions * @property {('masculine'|'feminine')} [gender] - Grammatical gender */ /** @type {Required} */ export declare const cardinalDefaults: Required; /** @type {{ gender: ReadonlyArray['gender']> }} */ export declare const cardinalValues: { gender: ReadonlyArray['gender']>; }; /** * Converts a numeric value to Croatian words. * @param {number | string | bigint} value - The numeric value to convert * @param {CardinalOptions} [options] - Optional configuration * @returns {string} The number in Croatian words */ declare function toCardinal(value: number | string | bigint, options?: CardinalOptions): string; /** * Converts a numeric value to Croatian ordinal words (masculine nominative). * @param {number | string | bigint} value - The numeric value to convert (must be a 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) // 'prvi' * toOrdinal(2) // 'drugi' * toOrdinal(21) // 'dvadeset prvi' * toOrdinal(100) // 'stoti' * toOrdinal(1000) // 'tisućiti' */ declare function toOrdinal(value: number | string | bigint): string; export type CurrencyOptions = { /** * - ISO 4217 code: native EUR, else DisplayNames/home-minor fallback (see currency-fallback.js) */ currency?: string; }; /** * @typedef {object} CurrencyOptions * @property {string} [currency] - ISO 4217 code: native EUR, else DisplayNames/home-minor fallback (see currency-fallback.js) */ /** @type {Required} */ export declare const currencyDefaults: Required; /** * Open set on purpose: no `currency` key, so `resolveOptions` accepts any * ISO 4217 code and the lookup below falls back past the native matrix. * Kept as an (empty) export so re-exporters (`hr.js`), the CLI help and the * docs generators keep a stable binding to read. */ export declare const currencyValues: {}; /** * Converts a numeric value to Croatian currency words (Euro). * @param {number | string | bigint} value - The currency amount to convert * @param {CurrencyOptions} [options] - Optional configuration * @returns {string} The amount in Croatian 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) // 'četrdeset dva eura' * toCurrency(1) // 'jedan euro' * toCurrency(1.50) // 'jedan euro pedeset centi' * toCurrency(-5) // 'minus pet eura' */ declare function toCurrency(value: number | string | bigint, options?: CurrencyOptions): string; export { toCardinal, toOrdinal, toCurrency };