import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, AfterViewInit, OnDestroy } from '@angular/core'; import { ControlValueAccessor, FormControl, FormGroupDirective, NgForm } from '@angular/forms'; export declare class ValueAccessor implements AfterViewInit, OnDestroy, ControlValueAccessor { protected element: ElementRef; protected injector: Injector; protected changeRef: ChangeDetectorRef; get isInvalid(): boolean; /** * Enable two-way binding */ readonly valueChange: EventEmitter; protected ngControl: FormControl; protected lastValue: any; private readonly parent; private parentSubscription; private onChange; onTouched: () => void; constructor(element: ElementRef, parentForm: NgForm, parentGroup: FormGroupDirective, injector: Injector, changeRef: ChangeDetectorRef); ngAfterViewInit(): void; ngOnDestroy(): void; onAnjBlur(): void; writeValue(value: any): void; onChangeEvent(value: any): void; registerOnChange(fn: (value: any) => void): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; onValidChange(): void; }