import { ParamConfig } from '../interface'; export declare const getValue: (obj: any, path?: string, defaultValue?: any) => any; export declare const setValue: (obj: any, path: string | undefined, value: any) => any; export declare const getParam: (config: ParamConfig, datas: { record?: object | undefined; data: object[]; step: { [field: string]: any; }; }) => any; export declare const getParamText: (text: string, params: Array<{ field?: string; data?: ParamConfig; }>, datas: { record?: object | undefined; data: object[]; step: { [field: string]: any; }; }) => string; export declare const getBoolean: (value: any) => boolean; /** * 处理list元素上移、下移 * @param list list * @param currentIndex 当前操作元素在list索引 * @param sortType up或down */ export declare const listItemMove: (list: any[], currentIndex: number, sortType: 'up' | 'down') => any[]; export declare const getChainPath: (...arg: any[]) => string; /** * 获取一个数组中最长共同前缀 *@param arr 入参数组的元素是二级及以上路径,为节省性能,该方法没有适配处理多个一级路径的共同前缀,一级路径没有共同前缀 * * eg: 根据项目使用场景,如['81.mode', '81.me.1', '81.my.1', '81.m']的共同前缀为81,不可以是81.m */ export declare const getLongestCommonPrefix: (arr: string[]) => string; /** * @param arr 目标数组 * @param sourceField 来源字段 * @returns 与来源字段比较共同前缀后更新的数组 | 是否更新并上报 * * eg: ['a.0', 'b']不会插入'a.0.c',会插入'a'替换'a.0',原数组改变为['a', 'b'] */ export declare const updateCommonPrefixItem: (arr: string[], sourceField: string) => string[] | boolean; /** * 转化value数组中的值类型 * @param list value数组 * @param type 值类型 * @returns value数组 */ export declare const transformValueType: (list: any[], type: 'string' | 'number' | 'boolean' | undefined) => any[];