import React, { FormEventHandler, FormHTMLAttributes, PropsWithChildren } from 'react';
import { FieldValues, SubmitErrorHandler, SubmitHandler, UseFormProps, UseFormReturn } from 'react-hook-form';
export type FormContainerProps = PropsWithChildren & {
onSuccess?: SubmitHandler;
onError?: SubmitErrorHandler;
FormProps?: FormHTMLAttributes;
handleSubmit?: FormEventHandler;
formContext?: UseFormReturn;
}>;
export declare function FormContainer({ handleSubmit, children, FormProps, formContext, onSuccess, onError, ...useFormProps }: PropsWithChildren>): React.JSX.Element;