import { FormatBase } from "./format.base.js"; import { NumberFormatOptions, UnitIdentifier } from "@odx/foundation"; declare global { interface HTMLElementTagNameMap { 'odx-format-number': OdxFormatNumber; } } /** * @summary A component for formatting numeric values into human-readable strings using the Intl.NumberFormat API. * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat | `Intl.NumberFormat`} */ declare class OdxFormatNumber extends FormatBase { static tagName: string; value?: number | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currency_2 | currency} to use in currency formatting. */ currency?: NumberFormatOptions['currency'] | null; /** * How to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay | display the currency} in currency formatting. */ currencyDisplay?: NumberFormatOptions['currencyDisplay'] | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits | minimum number of fraction digits} to use. */ minimumFractionDigits?: NumberFormatOptions['minimumFractionDigits'] | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits | maximum number of fraction digits} to use. */ maximumFractionDigits?: NumberFormatOptions['maximumFractionDigits'] | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumintegerdigits | minimum number of integer digits} to use. */ minimumIntegerDigits?: NumberFormatOptions['minimumIntegerDigits'] | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#style | formatting style} to use. */ type?: NumberFormatOptions['style'] | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#unit_2 | unit} to use in unit formatting. */ unit?: UnitIdentifier | null; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#unitdisplay | unit formatting style} to use in unit formatting. */ unitDisplay?: Intl.NumberFormatOptions['unitDisplay'] | null; protected transform(value: number): string; } export { OdxFormatNumber };