import { WidgetRegistry } from './widget.registry'; import { ValidatorFn } from '@angular/forms/src/directives/validators'; /** * Default widgets included with the editor. * * @author Wael Jammal */ export declare class DefaultWidgetRegistry extends WidgetRegistry { /** * Build validator array for given schema and arguments. * * @param schema Schema * @param parentSchema Parent schema * @param required True if field is required */ getFormValidator(schema: any, parentSchema: any, required: boolean): ValidatorFn | ValidatorFn[]; /** * Register widgets. */ protected registerWidgets(): void; /** * Register formatters. */ protected registerFormatters(): void; /** * Parse a form error and return a human readable error. * * @param key Error key * @param controlName FormControl name * @param schema Schema affected * @param detail Error details */ getValidatorError(key: string, controlName: string, schema: any, detail: any): string; }