/// import { GestureResponderEvent } from "react-native"; import { Key } from "./common"; import { CommonOptionProps, RadioOptionProps, CheckboxOptionProps } from "./Options"; export interface CommonSelectProps extends CommonOptionProps { placeholder?: string; required?: boolean; errorMessage?: string; disabled?: boolean; onClose?: (e?: GestureResponderEvent) => void; label?: (args: { value: string; props: SelectProps; toggle: () => void; }) => React.ReactNode; showFooterButton?: boolean; autoClose?: boolean; footer?: React.ReactNode; } export interface RadioSelectProps extends RadioOptionProps, CommonSelectProps { valueExtractor: (item: OptionType) => string; } export interface CheckboxSelectProps extends CheckboxOptionProps, CommonSelectProps { valueExtractor: (items: OptionType[]) => string; } export declare type SelectProps = RadioSelectProps | CheckboxSelectProps; export interface SelectState { showOptions: boolean; selectedCheckbox: Key[]; }