import type { FormikHelpers } from "formik";
import type { Dispatch, SetStateAction } from "react";
import type { FormState } from "../../contexts";
export interface UseFormSubmitProps<T> {
    onSubmit: (values: T, helpers: FormikHelpers<T>) => void | Promise<any>;
}
export interface UseFormSubmitResult<T> {
    state: FormState;
    setState: Dispatch<SetStateAction<FormState>>;
    handleSubmit: (values: T, helpers: FormikHelpers<T>) => void;
}
export declare const useFormSubmit: <T>({ onSubmit, }: UseFormSubmitProps<T>) => UseFormSubmitResult<T>;
