/** * @jsxRuntime classic * @jsx jsx */ import React from 'react'; import type { ReactNode } from 'react'; type ToolbarDropdownMenuProps = { children?: ReactNode; /** * Enforces a max height of 320px for menus - when menu is larger a scroll is introduced */ enableMaxHeight?: boolean; /** * Whether to add margin around sections to align with 4px block padding existing in current editor dropdown */ hasSectionMargin?: boolean; iconBefore: React.ReactNode; id?: string; isDisabled?: boolean; label?: string; onClick?: (event: React.MouseEvent, isOpen: boolean) => void; /** * Renders the dropdown menu inline (into its parent) rather than into a portal. This opts the * menu out of the popup focus-trap's return-focus-to-trigger behaviour on close, which lets * focus return to the editor after selecting an item. Opt-in per menu to avoid changing the * rendering of every toolbar dropdown. */ shouldRenderToParent?: boolean; testId?: string; tooltipComponent?: React.ReactNode; }; export declare const ToolbarDropdownMenu: ({ iconBefore, children, isDisabled, id, testId, label, hasSectionMargin, enableMaxHeight, onClick, tooltipComponent, shouldRenderToParent, }: ToolbarDropdownMenuProps) => JSX.Element; export {};