import type { ActionIcon } from "./icons.ts"; /** One row of the shared RuneStone action menu, or a separator. */ export type ActionMenuItem = { label: string; icon?: ActionIcon; shortcut?: string; run?: () => void; children?: ActionMenuItem[]; disabled?: boolean; checked?: boolean; radio?: boolean; title?: string } | { separator: true }; /** The options of `api.ui.showActionMenu`. `x` and `y` are viewport coordinates. */ export type ActionMenuOptions = { x: number; y: number; items: ActionMenuItem[]; label?: string; parent?: HTMLElement };