import { Dispatch, SetStateAction } from "react"; import { FeedbackAnswer, FeedbackOption, FollowupQuestion } from "../types"; type CurrentValue = FeedbackOption | FeedbackOption[] | undefined; type Followup = { questions: FollowupQuestion[]; values: FeedbackAnswer[] | undefined; step: { number: number; question: FollowupQuestion; isLast: boolean; }; currentValue: CurrentValue; setCurrentValue: Dispatch>; submitted: boolean; handleNext: () => void; handleAbort: () => void; }; export declare const useFollowup: (questions: FollowupQuestion[], onSubmit: (a: FeedbackAnswer[]) => void) => Followup; export {};