///
import { ValidateTrigger } from "./ValidateUtils/ValidateTrigger";
import { ValidateResult, ValidateConfig, FieldConfig } from "./ValidateUtils/ValidateInterface";
export declare type FormItemLabelPosition = "right" | "left" | "top";
export interface ValidateParams {
label: string;
input: HTMLElement;
trigger?: ValidateTrigger;
}
export declare type FormItemValidateFunc = (value: any, configs: FieldConfig[], params: ValidateParams) => Promise;
export interface FormProps extends Partial {
/**
* 附加类名
*/
prefixCls?: string;
/**
* 根节点的附加类名
*/
className?: string;
/**
* 内联样式
*/
style?: React.CSSProperties;
/**
* 规定当提交表单时向何处发送表单数据
*/
action?: string;
/**
* 表单内容
*/
children?: React.ReactNode;
/**
* 是否禁用默认表单提交
* @description 默认为true
*/
preventDefault?: boolean;
/**
* 规定在发送表单数据之前如何对其进行编码
*/
enctype?: "text/plain" | "multipart/form-data" | "application/x-www-form-urlencoded";
/**
* 规定用于发送 form-data 的 HTTP 方法
*/
method?: "post" | "get";
/**
* 表单name
*/
name?: string;
/**
* 规定在何处打开 action URL
*/
target?: "_blank" | "_self" | "_parent" | "_top";
/**
* 默认对象
* @description 用于提供默认值
*/
defaultModel?: T;
/**
* 验证配置
*/
validConfig?: ValidateConfig;
/**
* 获取表单方法
*/
getFormMethods?: (methods: FormMethods) => void;
/**
* 字段值改变事件
*/
onFieldChange?: (prop: string, value: any) => void;
/**
* 字段需要验证事件
*/
onFieldValidate?: FormItemValidateFunc;
/**
* 开始点击提交按钮
*/
onSubmitBefore?: (data: any) => void;
/**
* 表单需要验证事件
* @description 允许自定义表单验证
*/
onFormValidate?: (fieldMapper: React.MutableRefObject