import Gtk from "gi://Gtk"; import type { GjsContext } from "../../../reconciler/gjs-renderer"; import type { HostContext } from "../../../reconciler/host-context"; import { BaseElement, type GjsElement } from "../../gjs-element"; import { ChildOrderController } from "../../utils/element-extenders/child-order-controller"; import { ElementLifecycleController } from "../../utils/element-extenders/element-lifecycle-controller"; import type { SyntheticEvent } from "../../utils/element-extenders/event-handlers"; import { EventHandlers } from "../../utils/element-extenders/event-handlers"; import type { DiffedProps } from "../../utils/element-extenders/map-properties"; import { PropertyMapper } from "../../utils/element-extenders/map-properties"; import type { PointerData } from "../../utils/gdk-events/pointer-event"; import type { ChildPropertiesProps } from "../../utils/property-maps-factories/create-child-props-mapper"; import type { ExpandProps } from "../../utils/property-maps-factories/create-expand-prop-mapper"; import type { MarginProps } from "../../utils/property-maps-factories/create-margin-prop-mapper"; import type { SizeRequestProps } from "../../utils/property-maps-factories/create-size-request-prop-mapper"; import type { StyleProps } from "../../utils/property-maps-factories/create-style-prop-mapper"; import type { TooltipProps } from "../../utils/property-maps-factories/create-tooltip-prop-mapper"; import type { TextNode } from "../text-node"; import { MenuBarElement } from "./menu-bar"; import type { MenuItemElementType } from "./menu-elements"; import type { MenuRadioButtonElement } from "./menu-radio-button"; type MenuBarItemPropsMixin = ChildPropertiesProps & SizeRequestProps & MarginProps & ExpandProps & StyleProps & TooltipProps; export type MenuBarItemEvent

= {}> = SyntheticEvent; export interface MenuBarItemProps extends MenuBarItemPropsMixin { label?: string; onMouseEnter?: (event: MenuBarItemEvent) => void; onMouseLeave?: (event: MenuBarItemEvent) => void; } export declare class MenuBarItemElement extends BaseElement implements GjsElement<"MENU_BAR_ITEM", Gtk.MenuItem> { static getContext(currentContext: HostContext): HostContext; readonly kind = "MENU_BAR_ITEM"; protected widget: Gtk.MenuItem; submenu: Gtk.Menu; protected parent: MenuBarElement | null; readonly lifecycle: ElementLifecycleController; protected readonly handlers: EventHandlers; protected readonly children: ChildOrderController; protected readonly propsMapper: PropertyMapper; protected radioGroups: Map; constructor(props: DiffedProps); getRadioGroup(groupName: string): Gtk.RadioMenuItem; reattachRadioButton(button: MenuRadioButtonElement): void; updateProps(props: DiffedProps): void; appendChild(child: GjsElement | TextNode): void; insertBefore(child: GjsElement | TextNode, beforeChild: GjsElement): void; remove(parent: GjsElement): void; render(): void; notifyWillMountTo(parent: GjsElement): boolean; notifyMounted(): void; notifyChildWillUnmount(child: GjsElement): void; show(): void; hide(): void; getWidget(): Gtk.MenuItem; getParentElement(): MenuBarElement | null; } export {};