import { cloneDeep } from 'lodash-es'; import { CommonObject, EventArgs, InternalNamePath, NamePath } from '@/types/types'; import { IKuFmField } from '..'; import { TGroupNames, TNameCollection } from '@/types/form'; /** 获取对象的NamePath列列表 */ declare const getObjNamePath: (data: CommonObject, fields: NamePath[]) => NamePath[]; /** 通过namePath获取对象的值 */ declare const getValue: (store: CommonObject, namePath: NamePath) => any; /** 通过路径获取路径 */ declare const getNamePath: (path: NamePath | undefined) => InternalNamePath; /** 合并namepath */ declare const contactNamePath: (path: NamePath, group?: NamePath[]) => NamePath[]; declare const resetObj: (data: CommonObject) => CommonObject; declare const toArray: (value?: T | T[] | null | undefined) => T[]; declare const isEmpty: (value: any) => boolean; /** * @description: uuid */ declare const uuid: () => string; declare const validateRule: (value: any, { required, label, rules }: Pick, formStore: CommonObject) => Promise; declare const getCollectionNames: (groupMap: TGroupNames, nameCollection?: TNameCollection) => NamePath[] | undefined; /** * Moves an array item from one position in an array to another. * * Note: This is a pure function so a new array will be returned, instead * of altering the array argument. * * @param array Array in which to move an item. (required) * @param moveIndex The index of the item to move. (required) * @param toIndex The index to move item at moveIndex to. (required) */ declare const move: (array: T[], moveIndex: number, toIndex: number) => T[]; declare const getGroupName: (name?: NamePath) => string | undefined; declare const defaultGetValueFromEvent: (valuePropName: string, ...args: EventArgs) => any; declare const findFirstNotUndefined: (list?: (boolean | undefined)[]) => boolean | undefined; export { move, uuid, isEmpty, toArray, resetObj, getValue, cloneDeep, getNamePath, getGroupName, validateRule, getObjNamePath, contactNamePath, getCollectionNames, findFirstNotUndefined, defaultGetValueFromEvent, };