import { type ArabicSpelling } from './arabicNumberWords.js'; /** Cardinal ("twenty-one") or ordinal ("twenty-first"). */ export type NumberWordsKind = 'cardinal' | 'ordinal'; /** The gender of the counted noun. `'neuter'` is German's; the other * languages read it as masculine. */ export type NumberWordsGender = 'masculine' | 'feminine' | 'neuter'; /** How a language that inflects its number words writes them. Arabic reads * both fields, the Romance languages and German the gender; English, * Chinese and Japanese ignore them. */ export interface NumberWordsOptions { /** The gender of the counted noun: الفصل الأول but الليلة الأولى, واحد * وعشرون but إحدى عشرة; « chapitre premier » but « partie première », * "capitolo primo" but "parte prima". Default `'masculine'`, except in * German, where no gender gives the weak ordinal after the article * ("das erste Kapitel") and a gender the strong one ("Erster Teil", * "Erste Lektion", "Erstes Kapitel"). */ gender?: NumberWordsGender; /** `'classical'` spells the Arabic hundreds مائة (Bulaq orthography); * default `'modern'`, مئة. */ spelling?: ArabicSpelling; } /** * `n` spelled out in lower case, in the document language (`locale`: * `'es'` or a Spanish tag gives Spanish, and likewise French, Italian, * German, Catalan and Portuguese — Brazilian unless the tag names another * region; German with *ss* in Switzerland — a Chinese tag Chinese numerals * in its script, a Japanese tag Japanese kanji numerals, an Arabic tag * Arabic words in the spelling of `options`, anything else English; the * inflecting languages in the gender of `options`). Numbers past 999 999 * (Spanish, Catalan and Portuguese ordinals: past 999; Chinese and * Japanese: past 10¹⁶ − 1; Arabic: cardinals past 99 999, ordinals past * 9 999) print in digits; zero and below print nothing, like the other * numeral formats. */ export declare function numberToWords(n: number, kind?: NumberWordsKind, locale?: string, options?: NumberWordsOptions): string; /** Letter case of spelled-out words: as spelled, first letter capital, or * all capitals. */ export type WordsCase = 'lower' | 'capital' | 'upper'; export declare function caseWords(words: string, wordsCase: WordsCase, locale?: string): string; //# sourceMappingURL=numberWords.d.ts.map