UNPKG

@dfinity/gix-components

Version:
14 lines (13 loc) 461 B
import type { WizardStep, WizardSteps } from "../types/wizard"; export declare class WizardStepsState<T extends string = string> { currentStep: WizardStep<T> | undefined; currentStepIndex: number; previousStepIndex: number; private readonly steps; constructor(steps: WizardSteps<T>); next(): WizardStepsState<T>; get diff(): number; back(): WizardStepsState<T>; set(newStep: number): WizardStepsState<T>; private move; }