import { AriaAttributes, KeyboardEvent, PropsWithChildren, MouseEvent, ReactNode, default as React } from 'react'; import { ModalContentProps } from './../Modal/ModalContent'; export interface DropdownMenuProps extends ModalContentProps { /** * ID to find this component in testing tools (e.g.: cypress, testing library, and jest). */ testId?: string; /** * Identifies the element (or elements) that labels the current element. * @see aria-labelledby https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby */ 'aria-labelledby'?: AriaAttributes['aria-label']; /** * This function is called whenever the user hits "Escape" or clicks outside * the dialog. */ onDismiss?: (event: MouseEvent | KeyboardEvent) => void; /** * Specifies the size variant. */ size?: 'small' | 'regular'; /** * Alignment for the dropdown */ align?: 'left' | 'right' | 'center'; children: ReactNode[] | ReactNode; } declare const DropdownMenu: ({ children, testId, size, align, style, ...otherProps }: PropsWithChildren) => React.ReactPortal | null; export default DropdownMenu; //# sourceMappingURL=DropdownMenu.d.ts.map