import { FieldValues } from "react-hook-form"; import { BaseRecord, HttpError } from "@pankod/refine-core"; import { UseFormProps, UseFormReturnType } from "../useForm"; export declare type UseStepsFormReturnType = UseFormReturnType & { steps: { currentStep: number; gotoStep: (step: number) => void; }; }; export declare type UseStepsFormProps = UseFormProps & { /** * @description Configuration object for the steps. * `defaultStep`: Allows you to set the initial step. * * `isBackValidate`: Whether to validation the current step when going back. * @type `{ defaultStep?: number; isBackValidate?: boolean; }` * @default `defaultStep = 0` `isBackValidate = false` */ stepsProps?: { defaultStep?: number; isBackValidate?: boolean; }; }; export declare const useStepsForm: ({ stepsProps, ...rest }?: UseStepsFormProps) => UseStepsFormReturnType; //# sourceMappingURL=index.d.ts.map