import BigNumber from 'bignumber.js'; import * as i0 from "@angular/core"; /** * @description Service for formatting numeric values using the browser's `Intl.NumberFormat` API. * Automatically uses the locale configured in `LocaleService` unless explicitly overridden. * Supports `BigNumber`, plain numbers, and numeric strings, as well as currency display styles. * * @example * ```typescript * // Inject the service * const numericService = inject(NumericService); * * // Format a number with the active locale * const formatted = numericService.instant(1234567.89); * * // Format as currency * const currency = numericService.instant(1234.5, { * numberFormatOptions: { style: 'currency', currency: 'BRL' } * }); * ``` * @category Numeric */ export declare class NumericService { private readonly localeService; /** * Wrapper around Intl.NumberFormat that returns the localized value using the user's locale by default(platform's preferential language). * This method should only be used after the localeService has been initialized by the host application, either by a resolver or a manual call. * Can be overwritten by the provided Intl.NumberFormatOptions. * Documentation is available at {@link https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat Intl.NumberFormatOptions}. * @param {number | string | BigNumber} value The value to be formatted. * @param options Locale and numberFormatOptions that overwrites the default Intl.NumberFormatOptions. * @return `string` The formatted value. */ instant(value: number | string | BigNumber, options?: { locale?: string; numberFormatOptions?: Intl.NumberFormatOptions; }): string | null; private getCurrencyMinimumFractionDigits; private getType; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }