import React from 'react'; import type { ReactNode } from 'react'; import { PopupProps } from '../popup/index.js'; import { NativeProps } from '../../utils/native-props.js'; export type DropdownProps = { activeKey?: string | null; defaultActiveKey?: string | null; closeOnMaskClick?: boolean; closeOnClickAway?: boolean; onChange?: (key: string | null) => void; arrow?: ReactNode; getContainer?: PopupProps['getContainer']; } & NativeProps; export type DropdownRef = { close: () => void; }; declare const Dropdown: React.ForwardRefExoticComponent<{ activeKey?: string | null | undefined; defaultActiveKey?: string | null | undefined; closeOnMaskClick?: boolean | undefined; closeOnClickAway?: boolean | undefined; onChange?: ((key: string | null) => void) | undefined; arrow?: ReactNode; getContainer?: PopupProps['getContainer']; } & { className?: string | undefined; style?: (React.CSSProperties & Partial>) | undefined; tabIndex?: number | undefined; } & React.AriaAttributes & { children?: React.ReactNode; } & React.RefAttributes>; export default Dropdown;