import React from 'react'; import { FormContext } from './context'; import { FormValidator } from './Form'; export interface FormItemProps { label?: React.ReactNode; prop?: string; className?: string; style?: React.CSSProperties; } export interface FormItemState { valid: boolean; message: string; } export default class FormItem extends React.Component { static contextType: React.Context; context: React.ContextType; state: FormItemState; initialValue: any; componentDidMount(): void; componentWillUnmount(): void; validate(eventType?: 'change' | 'blur'): boolean; ruleValidate(rule: FormValidator, value: any, formValue: Record, eventType?: 'change' | 'blur'): boolean; setValidateStatus(valid: boolean, message?: string): boolean; reset(): { [x: string]: any; } | undefined; handleChange: () => void; handleBlur: () => void; getLabelStyle(): { width: string | number | undefined; height: string | number | undefined; } | undefined; render(): JSX.Element; }