import * as PropTypes from "prop-types"; import { ValidatorPublicInterface, ErrorInterface } from "../../Validators"; export interface FormProviderProps { validator: ValidatorPublicInterface; onSubmit: (modelValues: any) => Promise; errorParser?: (error: any) => Array | any; handleUnparsedErrors?: boolean; beforeSubmit?: () => void; afterSubmit?: (hasErrors: boolean) => void; } export declare const ValidatorPropTypes: { [P in keyof ValidatorPublicInterface]: PropTypes.Validator; }; export declare const FormProviderPropTypes: PropTypes.ValidationMap;