import { type HMENU, type HWND } from '../ctypes.js'; import { type RECT } from '../structs.js'; import type { MF_, TPM_ } from '../consts.js'; /** * Appends a new item to the end of the specified menu bar, drop-down menu, submenu, or shortcut menu. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-appendmenuw */ export declare function AppendMenu(hMenu: HMENU, flags: MF_, idNewItem: number | HMENU, newItem: string | null): boolean; /** * Sets the checked state of a menu item. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-checkmenuitem */ export declare function CheckMenuItem(hMenu: HMENU, idCheckItem: number, check: MF_): MF_ | -1; /** * Creates a drop-down menu, submenu, or shortcut menu. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-createpopupmenu */ export declare function CreatePopupMenu(): HMENU | null; /** * Displays a shortcut menu at the specified location and tracks the selection of items on the menu. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-trackpopupmenu */ export declare function TrackPopupMenu(hMenu: HMENU, flags: TPM_, x: number, y: number, hWnd: HWND, rect?: RECT | null): boolean;