import { Constructor } from './constructor'; import { ErrorStateMatcher } from '../error/error-options'; import { FormGroupDirective, NgControl, NgForm } from '@angular/forms'; import { Subject } from 'rxjs/Subject'; export interface CanUpdateErrorState { updateErrorState(): any; readonly stateChanges: Subject; errorState: boolean; errorStateMatcher: ErrorStateMatcher; } export interface HasErrorState { _parentFormGroup: FormGroupDirective; _parentForm: NgForm; _defaultErrorStateMatcher: ErrorStateMatcher; ngControl: NgControl; } /** * Mixin to augment a directive with updateErrorState method. * For component with `errorState` and need to update `errorState`. */ export declare function mixinErrorState>(base: T): Constructor & T;