import { FC } from 'react'; import { BoxProps } from '@cmpsr/components'; import { QuestionType } from './components/Question'; export type UseSetupCallbackCB = (questionId: string, value: string) => Promise; export type SaveAnswerType = (submittedAnswer: string | object) => void; export type SectionType = { id: string; name: string; questions: Array; }; export type QuestionnaireType = { version: number; sections: Array; nextQuestionId: string; nextSectionId: string; answers: any; }; export type DecisionTreeProps = { questionnaire: QuestionnaireType; callback: UseSetupCallbackCB; }; export interface DecisionTreeStaticMembers { Container: FC; } export type Steps = Array<{ id: string; name: string }>;