import { ElementRef, OnChanges, Provider, SimpleChanges, RendererFactory2 } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as textMask from 'text-mask-core'; import * as i0 from "@angular/core"; import * as i1 from "@angular/platform-browser"; export declare const conformToMask: typeof textMask.conformToMask; export declare class TextMaskConfig { mask: Array | ((raw: string) => Array) | false; guide?: boolean; placeholderChar?: string; pipe?: (conformedValue: string, config: TextMaskConfig) => false | string | object; keepCharPositions?: boolean; showMask?: boolean; } export declare const MASKEDINPUT_VALUE_ACCESSOR: Provider; export declare class MaskedInputDirective implements ControlValueAccessor, OnChanges { private _elementRef; private _compositionMode; textMaskConfig: TextMaskConfig; private textMaskInputElement; private inputElement; private _renderer; /** Whether the user is creating a composition string (IME events). */ private _composing; constructor(rendererFactory: RendererFactory2, _elementRef: ElementRef, _compositionMode: boolean); onChange: (_: any) => void; onTouched: () => void; ngOnChanges(changes: SimpleChanges): void; writeValue(value: any): void; registerOnChange(fn: (_: any) => void): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; _handleInput(value: any): void; _setupMask(create?: boolean): void; _compositionStart(): void; _compositionEnd(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class TextMaskModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }