/** * Arabic-script numerals, written and read: the Arabic-Indic digits of the * Mashriq (٠١٢٣٤٥٦٧٨٩, U+0660–0669) and the Extended Arabic-Indic digits * of Persian and Urdu (۰۱۲۳۴۵۶۷۸۹, U+06F0–06F9); the additive abjad * numerals of Classical Arabic and manuscript foliation (يا = 11, * غتمو = 1446) in the Mashriqi and the Maghrebi values; and the letter * series that number list items and front matter, in abjad order * (أ ب ج د هـ) and in the alphabetical, hijāʾī order (أ ب ت ث). Also * the reverse for digits: an Arabic author types ٣ where a Latin one * types 3. */ import type { DigitSystem } from './types.js'; /** `n` in Arabic-Indic digits: 2026 → ٢٠٢٦. */ export declare function arabicIndicDecimal(n: number): string; /** `n` in Extended Arabic-Indic (Persian) digits: 2026 → ۲۰۲۶. Urdu writes * the same code points; its glyph forms come from the font (`locl`). */ export declare function persianDecimal(n: number): string; /** * The ASCII digits of an engine-generated string in the document's digit * system: `'arab'` writes ٠–٩, `'arabext'` ۰–۹, `'latn'` (or none) leaves * the string as it is. Only strings the engine composed go through it — a * page count, a chapter ordinal, the fallback of a list number — never * the author's text. */ export declare function withDigits(text: string, digits: DigitSystem | undefined): string; /** Arabic-Indic (٠–٩) and Extended Arabic-Indic (۰–۹) digits turned into * ASCII ones, everything else kept: what a number an author typed on an * Arabic or Persian keyboard (`startAt=٣`, `:::part{number="١٢"}`) is * read through before `Number()`. */ export declare function asciiDigits(text: string): string; /** * `n` in additive abjad numerals, highest value first in logical order * (the reader sees it right to left): 11 يا, 15 يه, 1446 غتمو, 1835 غضله. * The thousands count is written before the thousand letter (2000 بغ, as * against 1002 غب). `'maghrebi'` takes the Maghrebi values. A final heh * that would stand alone takes a tatweel (5 هـ). Zero has no abjad numeral * and prints nothing; past 999 999 the number prints in digits. */ export declare function abjadNumeral(n: number, variant?: 'mashriqi' | 'maghrebi'): string; /** The 28 letters in abjad order, as list items are lettered in Arabic * textbooks and outlines (أ، ب، ج، د، هـ…). The first is written with its * hamza, as a list marker always is: a bare alif reads as the digit ١. */ export declare const ABJAD_LETTERS: readonly string[]; /** The 28 letters in alphabetical (hijāʾī) order, the dictionary order of * today (أ، ب، ت، ث، ج…); the first with its hamza, as above. */ export declare const HIJAI_LETTERS: readonly string[]; /** * The `n`th marker of a letter series, by the bijective rule of * `lower-alpha` (z, aa, ab…): past the last letter the series goes on in * two letters (أأ, أب…), then three. A final heh that would stand alone * takes a tatweel (هـ). Zero and below print nothing. */ export declare function arabicLettering(n: number, letters: readonly string[]): string; //# sourceMappingURL=arabicNumerals.d.ts.map