import * as React from "react"; import { IOWidget, Fun } from "./widget"; export interface Branch { condition: Fun; widget: IOWidget; } export interface ChoiceProps { input: i; branches: Branch[]; on_done: (output: o) => void; } export interface ChoiceState { } export declare class Choice extends React.Component, ChoiceState> { constructor(props: ChoiceProps, context: any); render(): (JSX.Element | null)[]; } export declare let choice: (branches: Branch[]) => IOWidget;