import { PureComponent, ReactElement } from 'react'; export interface DropdownOption { /** * Value of the option. */ value: string; /** * Element to use as the option icon. Will be displayed on the left of the item. */ icon?: ReactElement; /** * Human readable label of the option. */ title: string; } interface DropdownOptionsListProps { /** * Display a loading message. */ loading?: boolean; /** * List of options. */ options: ReadonlyArray; /** * Called when an option is pressed. */ onOptionPress: (option: DropdownOption) => void; /** * Array containing the selected options. */ selection: ReadonlyArray; } interface DropdownOptionsListState { preselectedIndex: number; viewableIndexes: ReadonlyArray; } export declare class DropdownOptionsList extends PureComponent { constructor(props: DropdownOptionsListProps); private readonly listRef; private readonly listViewabilityConfig; private updatePreselectedIndex; get preselectedOption(): DropdownOption; preselectNext(): void; preselectPrevious(): void; componentDidUpdate(prevProps: DropdownOptionsListProps, prevState: DropdownOptionsListState): void; private readonly onListItemHovered; private readonly onListItemPressed; private readonly onViewableItemsChanged; render(): JSX.Element; private renderEmptyList; private renderOption; } export {};