import { KeyboardEvent } from 'react'; import { Field } from '../common-types'; import { FormOptions } from '../renderer-context'; export type NextStep = string | ((context: { values: any; }) => string) | ((context: { values: any; }) => Promise) | (any & { stepMapper: { [key: string]: string; [key: number]: string; }; when: string[] | string; }); export interface WizardContextValue { formOptions: FormOptions; crossroads: string[]; currentStep: { fields?: Field[]; name: string; title?: string; nextStep?: NextStep; isProgressAfterSubmissionStep?: boolean; } | undefined; handlePrev: Function; onKeyDown?: (e: KeyboardEvent) => void; jumpToStep: Function; setPrevSteps: () => void; handleNext: Function; navSchema: Record[]; activeStepIndex: number; maxStepIndex: number; isDynamic: boolean; prevSteps: string[]; selectNext: Function; } declare const WizardContext: import("react").Context; export default WizardContext;