import { FormInstance } from 'element-plus'; import { noop } from 'lodash-es'; import { ChainMode } from './types'; import { RemoteColumn, ValueMap, NonModel } from './useColumn'; /** * 对options选项进行map转换 */ export declare const mapTo: (list: { label: string; value: T; }[], defaultValue?: string) => (val?: T | undefined) => string | NonNullable; /** * 对多个表单进行验证 * 并行模式:所有表单同时验证 均通过时才返回true * 逐行模式:前一个表单验证通过才开始验证下一个表单 其中一个验证不通过则停止验证并返回false */ export declare const chainForm: (forms: (FormInstance | undefined | null)[], mode?: ChainMode) => Promise; export declare const formatOption: (i: any, vk?: string, lk?: string, rL?: RemoteColumn['renderLabel']) => { disabled: any; label: any; value: any; key: any; }; export declare const valueMapTo: (model: NonModel, value: any | any[], valueMap?: ValueMap) => void; export declare const isUndefinedOrNullChar: (val: any) => boolean; export declare function callBack(fn?: typeof noop): void;