import { CSSProperties, ReactNode } from 'react'; import { MenuAction, MenuEntry } from './menu.types.js'; export declare function hasAnyIcon(items: MenuEntry[]): boolean; /** The action's icon, or an empty cell as wide when another action has one, so the labels line up. */ export declare function renderItemIcon(icon: MenuAction['icon'], reserveCell: boolean, props: { className: string; style?: CSSProperties; }): ReactNode; /** * Runs an action the way clicking it does: its own `onClick`, then `onAction`, then its `href`. * `follow` is `useFollowHref()` where the caller can reach the router; `menuHotkeys` cannot. */ export declare function runMenuAction(action: MenuAction, onAction?: (id: string) => void, follow?: (href: string) => void): void;