import { type Observable, type ObservableReadonly, type ObservableMaybe } from 'woby'; interface Helpers { goToNextStep: () => void; goToPrevStep: () => void; reset: () => void; canGoToNextStep: ObservableReadonly; canGoToPrevStep: ObservableReadonly; setStep: (step: Observable | number) => void; } /** * A hook for managing step navigation. * * This hook uses use to ensure the step state is always * represented as an observable, providing a consistent interface for * reactive step management. * * @param maxStep - The maximum step number (can be an observable or plain number) * @returns A tuple containing: * - currentStep: An observable number representing the current step * - helpers: An object containing utility functions for step navigation * * @example * ```tsx * const [currentStep, { goToNextStep, goToPrevStep, canGoToNextStep, canGoToPrevStep }] = useStep(3) * * return ( *
*

Current step: {currentStep}

* * *
* ) * ``` * * @see {@link https://github.com/vobyjs/woby|Woby documentation} for more information about observables */ export declare function useStep(maxStep: ObservableMaybe): [Observable, Helpers]; export {}; //# sourceMappingURL=useStep.d.ts.map