import { FC, ReactNode } from 'react'; import { Rule } from './Validator'; import { ValidateStatus, NamePath, NodeName } from './type'; export interface FormListField { key: number; name: number; } export interface FormListOperations { add: (defaultValue?: any, insertIndex?: number) => void; move: (from: number, to: number) => void; remove: (index: number | number[]) => void; } export interface FormListMeta { errors: string[]; required: boolean; validateStatus: ValidateStatus; } export interface FormListProps { children?: (fields: FormListField[], operation: FormListOperations, meta: FormListMeta) => ReactNode; required?: boolean; name: NodeName; initialValue?: any[]; label?: ReactNode; rules?: Rule[]; validateFirst?: boolean; validateTrigger?: string | string[]; validateStatus?: ValidateStatus; watch?: NamePath[]; } export declare const FormList: FC; export default FormList;