import {IStringKeyMap} from './IStringKeyMap'; import {ReactElement} from 'react'; export type StepSchema = { next: string | null; prev: string | null; } export type WizardContextProps = { moveNextStep: () => void; movePrevStep: () => void; moveToStep: (step: N) => void; onSubmit: () => void; steps: Array>; stepsSchema?: IStringKeyMap; currentStep: N; getPrevStep: () => N | null; getNextStep: () => N | null; } export type WizardStep = { name: N; label: string; component: ReactElement; }