import * as React from "react"; import * as PropTypes from "prop-types"; import { AutoValidateProps } from "./AutoValidateProps"; import { AutoValidateContext } from "./AutoValidateContext"; import { InputContext } from "../Input/InputContext"; import { ModelError } from "../Model"; export declare class AutoValidate extends React.Component { static readonly propTypes: { groupName?: PropTypes.Validator | undefined; children: PropTypes.Validator; onBlur?: PropTypes.Validator | undefined; onChange?: PropTypes.Validator | undefined; onLength?: PropTypes.Validator | undefined; always?: PropTypes.Validator | undefined; onValidated?: PropTypes.Validator | undefined; on?: PropTypes.Validator | undefined; }; static readonly defaultProps: { groupName?: string | undefined; children?: JSX.Element | undefined; onBlur?: boolean | undefined; onChange?: boolean | undefined; onLength?: number | undefined; always?: boolean | undefined; onValidated?: ((isValid: boolean) => void) | undefined; on?: ((nextValue: string, previousValue: string) => boolean) | undefined; }; static readonly childContextTypes: { onChange: PropTypes.Validator; onBlur: PropTypes.Validator; }; static readonly contextTypes: { validate: PropTypes.Validator<(...args: any[]) => any>; id: PropTypes.Validator; name: PropTypes.Validator; value: PropTypes.Validator; onChange: PropTypes.Validator; onAttributeChange: PropTypes.Validator; onFocus: PropTypes.Validator; onBlur: PropTypes.Validator; onMount: PropTypes.Validator; }; context: InputContext & { readonly validate: (group: string) => Promise; }; getChildContext(): AutoValidateContext; render(): JSX.Element; protected handleChange: (nextValue: any) => void; protected handleBlur: () => void; protected validate(): Promise; }