import { React_Form_IDS } from '../types/pages.type'; import type { IFormPageConfig, TPageConfig, RESULT_STATE, IProgressPageConfig } from '../appConfig.type'; import type { FieldValues } from 'react-hook-form'; /** * @function mergeAndReplaceConfig * @param defaultConfig if we have => { name:default, descriptions: [ { ..default.. }, { ..default.. }, { ..default.. } ], checkbox: {label:default, content: [...default,...default]}}) * @param newConfig we need to replace & merge => { descriptions: [ { ..new.. }, { ..new.. }, ],checkbox: {content: [...new]}) * @returns then it will return newConfig: { name:default, descriptions: [ { ..new.. }, { ..new.. } ], checkbox: {label:default, content: [...new]}}) */ export declare const useConfigFactory: () => { mergeAndReplaceConfig: (defaultConfig: TPageConfig, newConfig: TPageConfig, currModuleName: React_Form_IDS) => TPageConfig; addGlobalRules: (docConfig: NonNullable["documents"]>[number], country: string | null, region: string | null) => { type: import("../appConfig.type").DocumentTypes; countries?: import("../appConfig.type").CountryConfig; documentSourceLabel?: string; }; getResultInfo: (state: RESULT_STATE) => Partial>; mergeUniqueArray: (objValue?: DType[], srcValue?: DType[]) => any; }; //# sourceMappingURL=useConfigFactory.hooks.d.ts.map