import React from 'react'; export type StepActions = { showNext?: boolean; canNext?: () => boolean; onNext?: () => void; nextStep?: (current: number, last: number) => number; nextText?: string; showBack?: boolean; backText?: string; onBack?: () => void; showRestart?: boolean; canRestart?: () => boolean; onRestart?: () => void; restartText?: string; showSkip?: boolean; canSkip?: () => boolean; onSkip?: () => void; skipText?: string; }; export type StepProps = { title: string; children: React.ReactElement; end?: boolean; actions?: StepActions; };