import * as i0 from '@angular/core'; import { OnInit, OnChanges, ElementRef, Renderer2 } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { MatFormField } from '@angular/material/form-field'; /** * This directive will enhance an input element to format the numbers entered to a currency amount. */ declare class CurrencyInputDirective implements OnInit, OnChanges, ControlValueAccessor { private _el; private _renderer; private _locale; private _defaultCurrencyCode; private _field?; /** * true to allow negative input, otherwise false * Default to false. */ allowNegative: boolean; /** * Provide the currency code to format the entered amount. * Uses angular token DEFAULT_CURRENCY_CODE by default. */ currencyCode: string; /** * true if no decimal digits allowed, otherwise false. * Default to false. */ baseUnitOnly: boolean; /** * The format the of the amount either in wide or narrow. */ format: 'narrow' | 'wide'; placeholder: string; autocomplete: string; type: string; inputMode: string; private change; private onTouch; private _safari; private _symbol; private _decimalPipe; private _ds; private _trailing; constructor(_el: ElementRef, _renderer: Renderer2, _locale: string, _defaultCurrencyCode: string, _field?: MatFormField | undefined); ngOnInit(): void; ngOnChanges(): void; onInput(): void; onFocus(): void; onblur(): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; private _updatePlaceholder; private _currencyUpdated; private _formatCurrency; private _formatNumber; private _convert; private get _0Text(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class CurrencyInputModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { CurrencyInputDirective, CurrencyInputModule };