infinity-forge
Version:
12 lines (11 loc) • 672 B
TypeScript
import { FormikErrors } from 'formik';
import { ICustomSubmitProps } from '../custom-submit/index.js';
import { IFormHandler, OnSubmitConfiguration, StateFormFormHandler } from '../interfaces.js';
export declare const FormHandlerContext: import("react").Context<{
stateForm: StateFormFormHandler;
onSubmit: (action?: ICustomSubmitProps["action"], configs?: OnSubmitConfiguration) => Promise<void>;
values: any;
setFieldValue: (field: string, value: any, shouldValidate?: boolean) => Promise<void | FormikErrors<any>>;
formHandlerContextProps?: any;
}>;
export default function FormElement(props: IFormHandler): import("react/jsx-runtime").JSX.Element;