import React from "react"; import { Choice } from "../formDesign"; import { Schema } from "@mwater/expressions"; import ResponseRow from "../ResponseRow"; import { InnerFormContext } from "../formContext"; export interface RadioAnswerComponentProps { choices: Choice[]; onAnswerChange: any; /** See answer format */ answer: any; data: any; displayMode?: "vertical" | "toggle"; schema: Schema; responseRow: ResponseRow; formCtx: InnerFormContext; } export interface RadioAnswerComponentState { /** Status of visibility of choices */ choiceVisibility: { [choiceId: string]: boolean; }; } export default class RadioAnswerComponent extends React.Component { constructor(props: RadioAnswerComponentProps); componentDidMount(): void; componentDidUpdate(prevProps: RadioAnswerComponentProps): void; calculateChoiceVisibility(): Promise; focus(): null; handleValueChange: (choice: Choice) => any; handleSpecifyChange: (id: any, ev: any) => any; renderSpecify(choice: Choice): import("react/jsx-runtime").JSX.Element; renderGeneralSpecify(): import("react/jsx-runtime").JSX.Element | null; renderVerticalChoice(choice: Choice): import("react/jsx-runtime").JSX.Element | null; renderAsVertical(): import("react/jsx-runtime").JSX.Element; renderAsToggle(): import("react/jsx-runtime").JSX.Element; render(): import("react/jsx-runtime").JSX.Element | null; }