import * as React from 'react'; import { CSSProperties } from 'react'; import { BoxProps } from '../../components/Flex'; export type OnePageWizardContextType = { data: T; sections: (OnePageWizardSection | '-')[]; setCurrentSection: (index: number) => void; }; type CmpProps = BoxProps & { className?: string; style?: React.CSSProperties; }; export declare const SummaryTag: React.FunctionComponent>; export declare const SummaryText: React.FunctionComponent>; export declare const FormDescriptionText: React.FunctionComponent>; export declare const OnePageWizardContext: React.Context>; export declare function useOnePageWizardContext(): OnePageWizardContextType; export type OnePageWizardSection = { title: string; details?: React.ReactNode; isValid?: (data: ENTITY, context: OnePageWizardContextType) => true | string; isVisible?: (data: ENTITY, context: OnePageWizardContextType) => boolean; render: (data: ENTITY, index: number) => React.ReactNode; renderSummary?: (data: ENTITY) => React.ReactNode; }; export interface OnePageWizardProps { data: ENTITY; modal?: boolean; name: string; sections: (OnePageWizardSection | '-')[]; currentIndex?: number; defaultCurrentIndex?: number; defaultCurrentSectionName?: string; onSectionChange?: (index: number) => void; onHide?: VoidFunction; onFinish?: (data: ENTITY) => any; children?: React.ReactNode; style?: CSSProperties; titleContainerStyle?: CSSProperties; closeText?: React.ReactNode; closeTooltip?: string; finishText?: React.ReactNode; moduleName?: string; } export declare const OnePageWizard: (props: OnePageWizardProps) => React.JSX.Element; export {};