import { SubmitHandler, FieldValues, DefaultValues, FieldErrors, UseFormSetValue, UseFormReturn } from 'react-hook-form';
import { AnyObjectSchema } from 'yup';
type MFormProps<T extends FieldValues> = Readonly<{
    initialValues: DefaultValues<T>;
    initialErrors?: FieldErrors<T>;
    onSubmit: SubmitHandler<T>;
    children: React.ReactNode | ((props: {
        values: T;
        setValue: UseFormSetValue<T>;
        methods: UseFormReturn<T>;
    }) => React.ReactNode);
    validationSchema?: AnyObjectSchema;
    shouldValidateOption?: boolean;
    shouldDirtyOption?: boolean;
    validationOnMount?: boolean;
    enableReinitialize?: boolean;
}>;
export declare function MForm<T extends FieldValues>({ initialValues, onSubmit, children, initialErrors, validationSchema, shouldValidateOption, shouldDirtyOption, validationOnMount, enableReinitialize }: MFormProps<T>): import("react/jsx-runtime").JSX.Element;
export default MForm;
