/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/formattedNumber` component displays formatted numbers for decimals, currency, and percentages. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-formatted-number/documentation |Lightning FormattedNumber Documentation} */ declare module "lightning/formattedNumber" { import { LightningElement } from "lwc"; /** * A component that displays formatted numbers with support for various number formats, * including decimals, currency, and percentages. */ export default class LightningFormattedNumber extends LightningElement { /** * The value to be formatted. */ value: number; /** * The number formatting style to use. Possible values are decimal, currency, * percent, and percent-fixed. This value defaults to decimal. */ formatStyle: "decimal" | "currency" | "percent" | "percent-fixed"; /** * Only used if format-style='currency', this attribute determines which currency is * displayed. Possible values are the ISO 4217 currency codes, such as 'USD' for the US dollar. */ currencyCode?: string; /** * Determines how currency is displayed. Possible values are symbol, code, and name. * This value defaults to symbol. */ currencyDisplayAs: "symbol" | "code" | "name"; /** * The minimum number of integer digits that are required. Possible values are from 1 to 21. */ minimumIntegerDigits?: number; /** * The minimum number of fraction digits that are required. */ minimumFractionDigits?: number; /** * The maximum number of fraction digits that are allowed. */ maximumFractionDigits?: number; /** * The minimum number of significant digits that are required. Possible values are from 1 to 21. */ minimumSignificantDigits?: number; /** * The maximum number of significant digits that are allowed. Possible values are from 1 to 21. */ maximumSignificantDigits?: number; } }