import { Observable } from "rxjs" ; import { AbstractControl } from "@angular/forms" ; import { ControlState } from './control-state' ; export interface IAbstractControl < T , Entity = any > extends AbstractControl { readonly errorMessages ? : string [ ] ; readonly errorMessage ? : string ; readonly value : T | null ; readonly valueChanges : Observable < T | null > ; readonly statusChanges : Observable < "VALID" | "INVALID" | "PENDING" | "DISABLED" > ; get < T , K extends keyof Entity > ( path ) : IAbstractControl < Entity [ K ] > | null ; setValue ( value , options ? ) : void ; patchValue ( value , options ? ) : void ; reset ( formState ? , options ? ) : void ; getError ( errorCode , path ? ) : any ; }