import { MaybeContextDependentConfig } from "./shared-controls"; export type ChoiceValue = string | number | boolean; export type ChoiceObject = { label: string; value: T; }; export type ChoiceOption = T | ChoiceObject; export type ChoiceOptions = T[] | ChoiceObject[]; export interface ChoiceCore { type: "choice"; options: MaybeContextDependentConfig>; multiSelect?: MaybeContextDependentConfig; allowSearch?: boolean; filterOption?: boolean; onSearch?: MaybeContextDependentConfig void) | undefined>; }