import * as React from 'react'; import type { FormInstance, InternalNamePath, Meta, NamePath, Rule, Store, InternalFormInstance, StoreValue, EventArgs } from '../interface'; interface ChildProps { [name: string]: any; } export interface InternalFieldProps { children?: React.ReactElement | ((control: ChildProps, meta: Meta, form: FormInstance) => React.ReactNode); /** * Set up `dependencies` field. * When dependencies field update and current field is touched, * will trigger validate rules and render. */ shouldUpdate?: any; dependencies?: NamePath[]; getValueFromEvent?: (...args: EventArgs) => StoreValue; name?: InternalNamePath; normalize?: (value: StoreValue, prevValue: StoreValue, allValues: Store) => StoreValue; rules?: Rule[]; trigger?: string; validateTrigger?: string | string[] | false; validateFirst?: boolean | 'parallel'; valuePropName?: string; getValueProps?: (value: StoreValue) => Record; messageVariables?: Record; initialValue?: any; onReset?: () => void; onMetaChange?: (meta: Meta & { destroy?: boolean; }) => void; preserve?: boolean; /** @private Passed by Form.List props. Do not use since it will break by path check. */ isListField?: boolean; /** @private Passed by Form.List props. Do not use since it will break by path check. */ isList?: boolean; /** @private Pass context as prop instead of context api * since class component can not get context in constructor */ fieldContext?: InternalFormInstance; } export type FieldProps = InternalFieldProps; declare function WrapperField({ name, ...restProps }: FieldProps): React.JSX.Element; export default WrapperField;