import { AfterContentInit, OnDestroy } from '@angular/core'; import { FormControl, FormGroupDirective, NgForm, NgModel, Validator, ValidatorFn } from '@angular/forms'; import { ValidationResult } from './validate'; import { ValueAccessor } from './ValueAccessor'; export declare abstract class FormElementSync extends ValueAccessor implements AfterContentInit, OnDestroy { private validators; protected abstract model: NgModel; protected _validationError: string; protected timer: any; constructor(validators: Array); protected valueChanged(): void; protected validate: () => ValidationResult; get valid(): boolean; get invalid(): boolean; get validationError(): string; protected isErrorState: (control: FormControl | null, form: FormGroupDirective | NgForm | null) => boolean; ngAfterContentInit(): void; ngOnDestroy(): void; }