/// import { FormikProps, FormikErrors } from 'formik'; import { WizardContext, WizardProps } from 'react-albus'; import { Schema } from 'yup'; export declare type FormikWizardBaseValues = any; export interface FormikWizardContextValue { status: S; setStatus: React.Dispatch>; values: V; setValues: React.Dispatch>; } export interface FormikWizardStepType { id: string; component: React.SFC<{}>; validationSchema?: Schema; validate?: (values: any) => void | object | Promise>; initialValues?: FormikWizardBaseValues; actionLabel?: string; onAction?: (sectionValues: FormikWizardBaseValues, formValues: FormikWizardBaseValues) => Promise; keepValuesOnPrevious?: boolean; } export interface FormikWizardWrapperProps extends FormikWizardContextValue { canGoBack: boolean; goToPreviousStep: () => void; currentStep: string; actionLabel?: string; isLastStep: boolean; steps: string[]; wizard: WizardContext; children: React.ReactNode; isSubmitting: boolean; } export interface FormikWizardProps { steps: FormikWizardStepType[]; render: React.SFC>; onSubmit: (values: Values) => void | Promise; formikProps?: Partial>; albusProps?: Partial; Form?: any; }