import { ReactNode, CSSProperties, HTMLAttributes, FormHTMLAttributes } from 'react';
import { Options as ScrollIntoViewOptions } from 'scroll-into-view-if-needed';
import { ColProps } from '../Grid/col';
import Store from './store';
export declare type IndexedObject = {
[key: string]: any;
};
export declare type KeyType = string | number | symbol;
export declare type ComponentType = keyof JSX.IntrinsicElements | React.ComponentType;
export declare type FieldError = {
value?: FieldValue;
message?: ReactNode;
type?: string;
requiredError?: boolean;
};
export declare type ValidateFieldsErrors = Record | undefined | null;
/**
* @title Form
*/
export interface FormProps extends Omit, 'className' | 'onChange' | 'onSubmit'> {
style?: CSSProperties;
className?: string | string[];
prefixCls?: string;
/**
* @zh form
* @en form
*/
form?: FormInstance;
/**
* @zh 设置后,会作为表单控件 `id`的前缀。
* @en prefix of `id` attr
*/
id?: string;
/**
* @zh 表单的布局,有三种布局,水平、垂直、多列。
* @en The layout of Form
* @defaultValue horizontal
*/
layout?: 'horizontal' | 'vertical' | 'inline';
/**
* @zh 不同尺寸。
* @en size of form
*/
size?: 'mini' | 'small' | 'default' | 'large';
/**
* @zh
* `