/** * Wizard Component * Displays the passed components of steps * Can organize the display of steps according to the diagram, if it is passed * Copies the wizard's props to the step component for easy access to the wizard's state and methods * * Is a provider for components * @see {Navigation} * @see {Footer} * * @author: Denis Makarov * @date: 2020-02-12 */ import * as React from 'react'; import { StepSchema, WizardContextProps, WizardStep } from '../../type/WizardTypes'; import { Content } from './content/Content'; import { IStringKeyMap } from '../../type'; import { Navigation } from './navigation/Navigation'; import { Footer, IWizardFooterProps } from './footer/Footer'; export interface IWizardProps { steps: WizardStep[]; firstStep?: string; stepsSchema?: IStringKeyMap; onSubmit: () => void; } interface IState { activeStepKey: string; } export { IWizardFooterProps }; export declare const WizardContext: React.Context | null>; export declare class Wizard extends React.Component { static Footer: typeof Footer; static Navigation: typeof Navigation; static Content: typeof Content; constructor(props: IWizardProps); get activeStep(): WizardStep | undefined; getNextStep(): string | null; getPrevStep(): string | null; moveNextStep(): void; movePrevStep(): void; moveToStep(stepKey: string): void; private move; render(): JSX.Element | null; }