import { OdsFormControlMethods } from './ods-form-control-methods'; import { OdsValidityStateUnion } from './ods-form-control-type'; export declare class OdsFormControl { private formControl?; id: string; valid: boolean; constructor(id: string); register(formControl: OdsFormControlMethods): void; /** * is the form control element has a particular error or not. * It is based on the `odsValidityState` * @param errorType - the error type to check */ hasError(errorType: keyof ValidityState): Promise; }