import React from 'react'; import { PaperProps } from '@sinoui/core/Paper'; import type { VirtualElement } from '@popperjs/core'; import { Modifier } from '@popperjs/core'; import type { ContainerElement } from '../utils/getContainerElement'; import { MenuListProps } from './MenuList'; export interface MenuProps { children?: React.ReactNode; open: boolean; onEnter?: (element: HTMLElement) => void; onRequestClose?: () => void; MenuListProps?: MenuListProps; PaperProps?: PaperProps; preventAutoFocus?: boolean; id?: string; paperRef?: HTMLElement; minWidth?: number; dense?: boolean; color?: string; textStyle?: React.CSSProperties; /** * 参考元素。弹出提示内容会基于参考内容进行定位 */ referenceElement: ContainerElement; /** * 传给popper的插件。 */ modifiers?: Partial>[]; } export declare function syncWidth(anchorElement: HTMLElement, target?: HTMLElement): void; declare function Menu(props: MenuProps): JSX.Element; export default Menu;