/** * Options list with arrow pagination * * @author: Denis Makarov * @date: 2020-10-07 */ import * as React from 'react'; import { IOption, Value } from '..'; interface IProps { options: IOption[]; onSelect: (option: IOption | null) => void; value?: Value; showUnsetOption?: boolean; forwardRef?: React.RefObject; maxHeight?: number; unsetText?: string; optionRenderer?: (option?: IOption) => React.ReactNode; } interface IState { cursorItemIndex: number | undefined; isNavigationDisabled: boolean; } export declare class OptionList extends React.PureComponent { state: IState; containerElement: React.RefObject; navigatedElement: React.RefObject; createRef(): React.RefObject; handleKeyDown: (e: KeyboardEvent) => void; getNextAvailableOption: (currentIndex?: number) => number; getPrevAvailableOption: (currentIndex?: number) => number; handleUnset: () => void; isNavigationDisabled: () => boolean; componentDidUpdate(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentDidMount(): void; componentWillUnmount(): void; handleClick: (option: IOption | null) => (e: React.SyntheticEvent) => void; renderOption: (option: IOption) => React.ReactNode; render(): JSX.Element; } export {};