import { useContext as t } from "react";
import { StepperContext as r } from "../context/StepperContext.js";
function o() {
  const e = t(r);
  if (!e) throw new Error("useStepperHandlers must be used inside a <StepperProvider>.");
  return {
    goNext: e.goNext,
    goBack: e.goBack,
    goTo: e.goTo,
    setStepData: e.setStepData,
    getStepData: e.getStepData,
    getAllData: e.getAllData,
    setStepStatus: e.setStepStatus,
    reset: e.reset,
    getStepRef: e.getStepRef
  };
}
export {
  o as default
};
//# sourceMappingURL=useStepperHandlers.js.map
