/** * Serbian (Serbia, Cyrillic script) language converter * * CLDR: sr-Cyrl-RS | Serbian as used in Serbia (Cyrillic script) * * Key features: * - Three-form pluralization (one/few/many) * - Gender by scale word: the -arda forms (hiljada, milijarda, bilijarda, ...) * are feminine; the -ion forms (milion, bilion, ...) are masculine * - Irregular hundreds * - Long scale naming with -ard forms * - Cyrillic script */ 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 Serbian (Cyrillic) words. * @param {number | string | bigint} value - The numeric value to convert * @param {CardinalOptions} [options] - Optional configuration * @returns {string} The number in Serbian Cyrillic words */ declare function toCardinal(value: number | string | bigint, options?: CardinalOptions): string; /** * Converts a numeric value to Serbian 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 (e.g., "први", "четрдесет други") * @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) // 'први' * toOrdinal(2) // 'други' * toOrdinal(3) // 'трећи' * toOrdinal(21) // 'двадесет први' * toOrdinal(42) // 'четрдесет други' * toOrdinal(100) // 'стоти' * toOrdinal(1000) // 'хиљадити' */ declare function toOrdinal(value: number | string | bigint): string; export type CurrencyOptions = { /** * - Use "и" between dinars and para */ and?: boolean; }; /** * @typedef {object} CurrencyOptions * @property {boolean} [and] - Use "и" between dinars and para */ /** @type {Required} */ export declare const currencyDefaults: Required; /** * Converts a numeric value to Serbian currency words (Serbian Dinar). * @param {number | string | bigint} value - The currency amount to convert * @param {CurrencyOptions} [options] - Optional configuration * @returns {string} The amount in Serbian 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.50) // 'четрдесет два динара и педесет пара' * toCurrency(1) // 'један динар' * toCurrency(0.99) // 'деведесет девет пара' * toCurrency(0.01) // 'једна пара' * toCurrency(42.50, { and: false }) // 'четрдесет два динара педесет пара' */ declare function toCurrency(value: number | string | bigint, options?: CurrencyOptions): string; export { toCardinal, toOrdinal, toCurrency };