/** * Shared number formatter for figures the kit shows or announces: a rating, * a file size, an angle, a contrast ratio. Use it instead of `toFixed`, * which always writes a dot, and instead of a bare `Intl.NumberFormat`, * which shows English digits in Albanian on Chromium (no Albanian number * data there; see `numberLocale`). * * The UI language goes through `canonicalLocale` first, so a host's POSIX * tag (`it_IT.UTF-8`) formats as Italian rather than throwing. */ /** `value` in the UI `language`, with the given `Intl` options. */ export declare function formatNumber(value: number, language: string | undefined, options?: Intl.NumberFormatOptions): string; /** * A star rating as the kit writes it everywhere: at most one decimal, in * the language's own separator ("4,6" in Italian, "4.6" in English, "5" * for a whole number). Rating, OperatorHero and every hero or card that * shows a score use this, so visible text and aria-labels always agree. */ export declare function formatRating(value: number, language: string | undefined): string; //# sourceMappingURL=format-number.d.ts.map