import React from "react"; import { FormSubmitCallback, FormzValues } from "@zerry/react-formz-core"; export interface FormSubmitProviderProps { onSubmit?: FormSubmitCallback; /** * If true, will reset form state to initialValues after a successful submit. */ resetOnSubmit?: boolean; } /** * Provides all child forms with a specific date formatter. */ declare const FormSubmitProvider: ({ onSubmit, children, resetOnSubmit, }: React.PropsWithChildren>>) => JSX.Element; /** * Hook to get form submission context. */ export declare function useFormSubmitContext(): FormSubmitProviderProps; export default FormSubmitProvider; //# sourceMappingURL=FormSubmitProvider.d.ts.map