import { FormBuilder, FormControl, FormGroup } from '@angular/forms'; import * as i0 from "@angular/core"; export declare class BaseFormHelperService { protected fb: FormBuilder; /** carries the form model into angular formGroup */ private _form; set form(formGroup: FormGroup); get form(): FormGroup; /** * Get the child formGroup from root formGroup with help of provided path * @param path name of group * @returns child group from root formGroup */ getGroup(path: string): FormGroup; /** * Get formControl from root formGroup with help of provided path * @param path path of cotnrol * @returns control from formGroup */ getControl(path: string): FormControl; /** * Get error type of control to show in validations * @param path path of form control * @param group FormGroup to search path in * @returns error state of control * @example * ``` * getErrorMessage('firstName') // finds in main FormGroup in service class * getErrorMessage('firstName', personalDetailsGroup) // finds in FormGroup passed as an argument * ``` */ getErrorMessage(path: string, group?: FormGroup): string | null; /** * @protected * create form and assign to the form property */ protected createForm(model: any): void; constructor(fb: FormBuilder); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }