import { FormGroup } from '@angular/forms'; import { PpFormField } from '../types/forms.type'; import * as i0 from "@angular/core"; export declare class FormsService { constructor(); /** * * @param formFields :CanFormField[] * @param values :object * * Parse upload value */ parseUploadValue(formFields: PpFormField[], values: any, form: FormGroup): void; getAllEditedValues(form: FormGroup): any; getImageViewValue(element: PpFormField): any; setUploadValueInNestedForm(defaultValue: any, formFields?: PpFormField[]): void; setUploadValue(defaultValue: any, file: any): { value: any; type: string; viewValue: string; }; findFormField(formFields: PpFormField[], name: string): any; /** * * @param name : string * Set Relative Form Field Value */ setFormFieldValue(name: string, value: any, form: FormGroup): boolean; /** * * @param formFields :CanFormField[] * @param values :object * * Remove values that are not required to send */ removeNotIncludedValues(formFields: PpFormField[], values: any, form: FormGroup): void; /** * * @param data :Array * @param key :string * @param value */ getObjectFromArray(data: Array, key: string, value: any): object | null; getValueByPath(obj: any, path: string): any; /** * * @param formFields :CanFormField * Set value has been changed in form field */ setFormControlDirty(formField: PpFormField, form: FormGroup): void; /** * * @param data:object * @param key:string * * Fetching Value with API KEY */ getValueWithApiKey(data: any, key: string, separators?: Array): any; getValueWithApiKeySecondary(data: any, viewValueKey: any): any; /** * * @param control * @returns current selected values */ getSelectedValues(control: PpFormField): string[]; makePreviewObject(globalFormFields: PpFormField[], resultObj?: any): any; static deepClone(thing: any, opts?: { newFns?: boolean; }): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }