import React from 'react'; import type { ReactNode, Ref } from 'react'; import type { CustomItemComponentProps } from '@atlaskit/menu/types'; import type { DataAttributes } from '../types'; type TextStyle = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6'; export type ToolbarDropdownItemInteractionProps = { onBlur?: React.FocusEventHandler; onFocus?: React.FocusEventHandler; onMouseEnter?: React.MouseEventHandler; onMouseLeave?: React.MouseEventHandler; }; export type ToolbarDropdownItemRole = 'menuitem' | 'menuitemcheckbox' | 'menuitemradio'; export type CustomDropdownMenuItemButtonProps = CustomItemComponentProps & ToolbarDropdownItemInteractionProps & { 'aria-controls'?: string; 'aria-disabled'?: boolean; 'aria-haspopup'?: React.AriaAttributes['aria-haspopup']; 'aria-keyshortcuts'?: string; 'aria-pressed'?: boolean; 'data-extension-item-key'?: string; id?: string; itemRole?: ToolbarDropdownItemRole; title?: string; }; type ToolbarDropdownItemProps = ToolbarDropdownItemInteractionProps & { 'aria-controls'?: string; /** Accessible relationship for items that open a nested popup. */ 'aria-haspopup'?: React.AriaAttributes['aria-haspopup']; ariaKeyshortcuts?: string; children?: React.ReactNode; elemAfter?: ReactNode; elemAfterText?: ReactNode; elemBefore?: ReactNode; hasNestedDropdownMenu?: boolean; href?: string; id?: string; isDisabled?: boolean; isSelected?: boolean; onClick?: (e: React.MouseEvent | React.KeyboardEvent) => void; rel?: string; role?: ToolbarDropdownItemRole; shouldTitleWrap?: boolean; target?: string; testId?: string; textStyle?: TextStyle; title?: string; triggerRef?: Ref; } & DataAttributes; export declare const ToolbarDropdownItem: ({ 'aria-haspopup': ariaHasPopup, onClick, onBlur, onFocus, onMouseEnter, onMouseLeave, elemBefore, elemAfter, elemAfterText, isSelected, children, isDisabled, hasNestedDropdownMenu, triggerRef, title, shouldTitleWrap, testId, ariaKeyshortcuts, href, target, rel, role, ...dataAttributes }: ToolbarDropdownItemProps) => React.JSX.Element; export {};