import React from 'react'; import type { TextInputProps as NativeTextInputProps } from 'react-native'; import type { TextInputProps } from '../../TextInput'; import type { SelectOptionType, SelectProps } from '../types'; export interface SingleSelectProps = SelectOptionType> extends SelectProps { /** * Current selected value. */ value: V | null; /** * On select event handler */ onConfirm: (value: V | null) => void; /** * Customise the selected value rendering. */ renderSelectedValue?: (selectedValue: V | null, inputProps: NativeTextInputProps) => React.ReactNode; /** * Supported orientations for the Select modal, iOS only. */ supportedOrientations?: ('portrait' | 'landscape')[]; } export interface InternalSingleSelectProps = SelectOptionType> extends SingleSelectProps { TextInputComponent?: React.ComponentType; groupStyleEnabled?: boolean; } declare const SingleSelect: >({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, groupStyleEnabled, ...rest }: InternalSingleSelectProps) => React.JSX.Element; export default SingleSelect;