/** * Arabic numbers in words, for heading templates (`{1:ordinal}`, * `{1:ordinal-feminine}`, `{1:words}`): the ordinal a chapter or a night is * titled with — الفصل الأول, الباب الحادي عشر, الليلة الأولى, الليلة الحادية * بعد الألف — and the cardinal (واحد وعشرون, إحدى عشرة). Both agree in gender * with the noun they count: masculine for فصل, باب, جزء, كتاب; feminine for * ليلة, مقالة, حكاية. * * The forms are those of Modern Standard Arabic as headings print them: * nominative, and for ordinals definite (with ال). Numbers above a hundred * that are not round take the "after" formula of the classical editions * and their modern reprints: 145 الخامس والأربعون بعد المئة, 1001 الحادية * بعد الألف. Hundreds are spelled مئة, as the language academies write * them today, or مائة (`spelling: 'classical'`), as Bulaq and most * Egyptian prints do (ثلاثمائة in one word either way). */ export type ArabicGender = 'masculine' | 'feminine'; export type ArabicSpelling = 'modern' | 'classical'; export interface ArabicWordsOptions { /** The gender of the counted noun. Default `'masculine'`. */ gender?: ArabicGender; /** `'classical'` spells the hundreds مائة. Default `'modern'` (مئة). */ spelling?: ArabicSpelling; } /** * `n` as an Arabic cardinal, nominative, counting a noun of `gender`: * واحد / واحدة, اثنان / اثنتان, ثلاثة / ثلاث, أحد عشر / إحدى عشرة, واحد * وعشرون / واحدة وعشرون, مئة وخمسة, ألفان وثلاثمئة. Zero is صفر; past * 99 999, and below zero, the number prints in digits. */ export declare function arabicCardinal(n: number, options?: ArabicWordsOptions): string; /** * `n` as a definite Arabic ordinal, nominative, agreeing with a noun of * `gender`, as a heading names a chapter or a night: الأول / الأولى, الحادي * عشر / الحادية عشرة, الحادي والعشرون / الحادية والعشرون, المئة, الخامس * والأربعون بعد المئة, الحادية بعد المئتين, الخامسة والأربعون بعد الثلاثمئة, * الألف, الحادية بعد الألف. A round hundred or thousand is the definite * number itself (المئتان, الألف والمئة); any other number above 100 is * the ordinal of its last two digits "after" the round part. Past 9 999, * and below 1, the number prints in digits. */ export declare function arabicOrdinal(n: number, options?: ArabicWordsOptions): string; //# sourceMappingURL=arabicNumberWords.d.ts.map