import { AbstractControl } from '@angular/forms'; import { Observable } from 'rxjs'; export declare function prepareFormErrorObservables(): ClassDecorator; export declare function useFormErrorObservable(instance: T): (keyName: string, func: () => AbstractControl, translations: { [key: string]: (errors: any, control: AbstractControl) => ControlErrorBag; }) => Observable; export declare function createErrorObservable(func: () => AbstractControl, translations: { [key: string]: (errors: any, control: AbstractControl) => ControlErrorBag; }): Observable; export interface ControlErrorBag { content: string; args?: { [key: string]: any; }; }