import { FormConfig, StepDefinition, StepFormConfig } from "../types.js"; import { BaseRecord } from "@refinedev/core"; import { UseFormReturn } from "react-hook-form"; //#region src/components/form/handlers/step.d.ts interface StepSubmissionHandlerOptions { closeDialog?: () => void; config: FormConfig; currentStep: number; formMethods: UseFormReturn; goToNextStep?: () => void; isLastStep?: boolean; stepConfig: StepDefinition; } declare function getStepOnSuccessHandler(config: StepFormConfig, formMethods: UseFormReturn, isLastStep: boolean, closeDialog: () => void): (response: TResponse, data: TRequest) => Promise; declare function handleStepSubmission(options: StepSubmissionHandlerOptions): Promise; //#endregion export { StepSubmissionHandlerOptions, getStepOnSuccessHandler, handleStepSubmission }; //# sourceMappingURL=step.d.ts.map