/** * @file Santd form util * @author mayihui@baidu.com */ import { ValidateFieldsCallback, ValidateFieldsOptions, ValidateRule } from '../interface'; type TreeType = any; type IsLeafNodeFun = (path: string, tree: TreeType[]) => boolean; type CallbackFun = (path: string, tree: TreeType[]) => void; export declare function identity(obj: any): any; export declare function flattenArray(arr: T[]): any[]; export declare function treeTraverse(path: string | undefined, tree: TreeType, isLeafNode: IsLeafNodeFun, errorMessage: string, callback: CallbackFun): void; export declare function flattenFields(maybeNestedFields: unknown, isLeafNode: IsLeafNodeFun, errorMessage: string): Record; export declare function normalizeValidateRules(validate: ValidateRule[], rules?: RuleItem[], validateTrigger?: string | string[]): { trigger: string | string[]; rules?: RuleItem[] | undefined; }[]; export declare function getValidateTriggers(validateRules: ValidateRule[]): string[]; export declare function getValueFromEvent(e: Event): any; export declare function getErrorStrs(errors: ValidateError[]): (string | ValidateError)[]; export declare function getParams(ns?: string[] | ValidateFieldsOptions | ValidateFieldsCallback, opt?: ValidateFieldsOptions | ValidateFieldsCallback, cb?: ValidateFieldsCallback): { names: string[] | undefined; options: ValidateFieldsOptions | undefined; callback: ValidateFieldsCallback | undefined; }; export declare function isEmptyObject(obj: Record): boolean; export declare function hasRules(validate?: ValidateRule[]): boolean; export declare function startsWith(str: string, prefix: string): boolean; export declare function getComputedStyle(el: T, prop: string): any; export declare function getScrollableContainer(node: Element): Document | Element; export {};