import React from 'react'; import { type UseDropConfig } from 'vienna.react-use'; import { Box, PropsBox } from './DropList.styles'; import { Item } from './Item'; import { ResponsiveProp, Breakpoints } from '../Utils/responsiveness'; import { BoxStyled } from '../Utils/styled'; import { ItemsGroup } from './ItemsGroup'; import { MenuItem } from './MenuItem'; import { ReactRefType } from '../Utils'; export interface DropListProps extends BoxStyled { maxHeight?: PropsBox['$maxHeight']; width?: PropsBox['$width']; fitItems?: PropsBox['$fitItems']; scrollable?: PropsBox['$scrollable']; size?: ResponsiveProp<'s' | 'm' | 'l', B>; align?: UseDropConfig['align']; float?: 'start' | 'end'; margins?: { x: number; y: number; }; fixed?: boolean; coords?: { x: number; y: number; }; dropdownPortal?: HTMLElement | React.MutableRefObject | null; containerRef?: React.MutableRefObject; /** Опционально: элемент от которого вести расчет пересечений */ container?: HTMLElement; followParentWhenScroll?: boolean; onHide?: () => void; /** Опционально: функция, которая вызывается при клике вне DropList и элементов из additionalOutsideClickRefs */ onOutsideClick?: (e: TouchEvent | MouseEvent) => void; /** Опционально: дополнительные элементы, над которыми вешается onOutsideClick */ additionalOutsideClickRefs?: React.MutableRefObject[]; } declare const DropListInternal: (props: DropListProps, ref: ReactRefType) => React.JSX.Element; export declare const DropList: ((props: DropListProps & { ref?: ReactRefType; }) => ReturnType) & { Item: typeof Item; Group: typeof ItemsGroup; MenuItem: typeof MenuItem; displayName?: string; }; export {};