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