import React from 'react'; import { DropdownListItemType, DropdownListItemValue, DropdownListSelectionMode, FooterItemsProps, HeaderItemsProps } from '../types'; import { DropdownListWidth, DropdownSize } from '../../constants'; type DropdownContainerProps = { width?: DropdownListWidth; fixed?: boolean; top?: number; left?: number; up?: boolean; }; type ListContainerProps = { size: DropdownSize; }; export type DropdownListProps = DropdownContainerProps & ListContainerProps & { items: DropdownListItemType[]; maxVisibleItems?: number; selectedValue?: DropdownListItemValue; title?: string; disableValue?: DropdownListItemValue; selectionMode?: DropdownListSelectionMode; onItemClick?: (value: DropdownListItemValue, fromEnter: boolean) => void; onItemMouseDown?: (value: DropdownListItemValue, index?: number, e?: React.MouseEvent) => void; selectedState?: boolean; headerItems?: HeaderItemsProps[] | null; footerItems?: FooterItemsProps[] | null | undefined; hideDropdown?: () => void; tooltipValue?: string; titleTooltip?: string; itemAsLink?: boolean; setSelected?: (value?: DropdownListItemValue) => void; dataTestid?: string; minHeight?: number; parentTop?: number; className?: string; maxWidth?: string; up?: boolean; id?: string; hideBackgroundColorOnSelected?: boolean; contextMenuY?: number; }; /** * This component will not be exported */ export declare const DropdownList: React.ForwardRefExoticComponent void) | undefined; onItemMouseDown?: ((value: DropdownListItemValue, index?: number, e?: React.MouseEvent) => void) | undefined; selectedState?: boolean | undefined; headerItems?: HeaderItemsProps[] | null | undefined; footerItems?: FooterItemsProps[] | null | undefined; hideDropdown?: (() => void) | undefined; tooltipValue?: string | undefined; titleTooltip?: string | undefined; itemAsLink?: boolean | undefined; setSelected?: ((value?: DropdownListItemValue) => void) | undefined; dataTestid?: string | undefined; minHeight?: number | undefined; parentTop?: number | undefined; className?: string | undefined; maxWidth?: string | undefined; up?: boolean | undefined; id?: string | undefined; hideBackgroundColorOnSelected?: boolean | undefined; contextMenuY?: number | undefined; } & React.RefAttributes>; export {};