import * as React from 'react'; import type { OptionsType as SelectOptionsType, RenderNode, OnActiveValue, FieldNames } from './interface'; import type { RawValueType, FlattenOptionsType } from './interface/generator'; import type { EllipsisType } from './generate'; export interface OptionListProps { prefixCls: string; id: string; options: OptionsType; fieldNames?: FieldNames; flattenOptions: FlattenOptionsType; height: number; itemHeight: number; values: Set; multiple: boolean; open: boolean; defaultActiveFirstOption?: boolean; notFoundContent?: React.ReactNode; showAll?: boolean; disabledShowAll?: boolean; selectAllText?: React.ReactNode; selectAllIcon?: React.ComponentType; menuItemSelectedIcon?: RenderNode; childrenAsData: boolean; searchValue: string; virtual: boolean; direction?: 'ltr' | 'rtl'; autoEllipsis?: EllipsisType; tooltip?: React.ElementType; onSelect: (value: RawValueType, option: { selected: boolean; }) => void; onSelectAll: (values: RawValueType[], option: { selected: boolean; }) => void; onToggleOpen: (open?: boolean) => void; /** Tell Select that some value is now active to make accessibility work */ onActiveValue: OnActiveValue; onScroll: React.UIEventHandler; /** Tell Select that mouse enter the popup to force re-render */ onMouseEnter?: React.MouseEventHandler; } export interface RefOptionListProps { onKeyDown: React.KeyboardEventHandler; onKeyUp: React.KeyboardEventHandler; scrollTo?: (index: number) => void; } declare const RefOptionList: React.ForwardRefExoticComponent & React.RefAttributes>; export default RefOptionList;