/** * 映射字段size,主要是default转medium * @param props component的props * @param field 当前字段实例 * @returns 映射后的字段属性 */ declare const mapSize: (props: any, field: any) => any; /** * 映射字段state * @param props component的props * @param field 当前字段实例 * @returns 映射后的字段属性 */ declare const mapStatus: (props: any, field: any) => any; declare const mapDataSource: (props: any, field: any) => any; declare const mapMode: (props: any, field: any) => any; /** * 创建字段名称 * @param prefix 字段名称前缀,接收字段component名称,默认为FieldName * @param suffix 字段后缀,唯一标识 * @returns 字段唯一名称 */ interface IGetFieldName { (prefix: string, suffix?: string): string; } declare const getFieldName: IGetFieldName; /** * 将ProForm的key映射为formily的key,然后筛除掉无效的key/value * @param obj * @returns */ declare const mapSchemaName: (obj: any) => any; /** * 合并数组或非数组,不移除无效值 * @param arr 数组 * @param v 数组或其他 * @returns 合并数组或合并其他值 */ declare const mergeArrayValue: (arr: any[], v?: any) => any[]; /** * 初始化请求配置为表达式 * @param config 请求配置 * @param suffix scope名称后缀 * @returns 表达式和scope上下文 */ declare const initializeRequestExpression: (config?: any, mode?: string, suffix?: string) => { expression: string; scope: { [x: string]: object; }; } | { expression?: undefined; scope?: undefined; }; export { mapSize, mapStatus, mapDataSource, mapMode, mergeArrayValue, getFieldName, mapSchemaName, initializeRequestExpression, };