import { type MenuRowIcon } from './menu-row.component'; export interface RowActionsMenuItem { key: string; label: string; /** * The leading icon, left of the label as in the besigner's File menu * (Zach, 2026-10-10): an mdi glyph (`{ path }`) or a rendered icon. An * `external` item without one leads with the open-in-new glyph. */ icon?: MenuRowIcon; /** * Where the item navigates. An item that carries one renders as a real * anchor, so it can be middle-clicked into a new tab, copied, or opened * from the browser's own context menu — the affordances a click handler * cannot offer however faithfully it calls `router.push`. */ href?: string; /** * Open `href` in a new tab: a page off the console, or a preview / view of * something the reader is glancing at beside this list (AGL-3660). The item * gains `noopener noreferrer`, an "(opens in a new tab)" accessible name, * and — when it names no icon of its own — the open-in-new glyph as its * leading icon. */ external?: boolean; /** For items that open a dialog rather than navigate. */ onClick?: () => void; /** Renders the row in the error colour, for destructive actions. */ destructive?: boolean; disabled?: boolean; /** * Why the item cannot be used, shown as its tooltip. Mirrors the quick * action's `unavailableReason`: a control that is present but inert says * nothing on its own, and an absent one and an inapplicable one look alike. */ disabledReason?: string; /** * A short second line under the label, always on screen — where a * disabled item says why without waiting for a hover, or an item says * where it goes when its label alone cannot. */ description?: string; } export interface RowActionsMenuProps { items: RowActionsMenuItem[]; /** Distinguishes this row's menu for screen readers. */ label?: string; } /** * Overflow menu for a table row's secondary actions (AGL-701). * * The DataGrid lists get this from `GridActionsCellItem showInMenu`, but the * screens table is hand-rolled markup driven by a `renderRowActions` * render-prop, so `showInMenu` is not available to it and it needs a real * menu of its own. * * Every handler closes the menu first. Delete opens a confirmation, and a * menu left standing over that dialog reads as though the click missed. * * An item that names an `href` is an ANCHOR, not a handler — a navigation * action must be middle-clickable and copyable like any other link. It still * renders as a menu item: the anchor is the MenuItem's own root element, so * it inherits the item's colour, padding and focus ring rather than the * browser's link styling. * * Every row is the besigner File menu's row (`menu-row.component`): dense, * a leading icon on the left, the label and its second line, one left edge * for the whole menu (Zach, 2026-10-10). */ export declare function RowActionsMenu(props: RowActionsMenuProps): import("react").JSX.Element; export declare namespace RowActionsMenu { var displayName: string; } export default RowActionsMenu;