import { __name } from "../../_virtual/_rolldown/runtime.js"; import { IconName, IconPrefix } from "../../node_modules/@fortawesome/fontawesome-common-types/index.js"; //#region client/interface/menu.d.ts type MenuPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; type ChangeFunction = (selected: number, scrollIndex?: number, args?: any, checked?: boolean) => void; type IconAnimation = 'spin' | 'spinPulse' | 'spinReverse' | 'pulse' | 'beat' | 'fade' | 'beatFade' | 'bounce' | 'shake'; interface MenuOptions { label: string; icon?: IconName | [IconPrefix, IconName] | string; iconColor?: string; iconAnimation?: IconAnimation; checked?: boolean; values?: Array; description?: string; defaultIndex?: number; args?: Record; close?: boolean; } interface MenuProps { id: string; title: string; options: MenuOptions[]; position?: MenuPosition; disableInput?: boolean; canClose?: boolean; onClose?: (keyPressed?: 'Escape' | 'Backspace') => void; onSelected?: ChangeFunction; onSideScroll?: ChangeFunction; onCheck?: ChangeFunction; cb?: ChangeFunction; } type registerMenu = (data: MenuProps, cb: ChangeFunction) => void; declare const registerMenu: registerMenu; declare const showMenu: (id: string) => string; declare const hideMenu: (onExit: boolean) => void; declare const getOpenMenu: () => string | null; type setMenuOptions = (id: string, options: MenuOptions | MenuOptions[], index?: number) => void; declare const setMenuOptions: setMenuOptions; //#endregion export { getOpenMenu, hideMenu, registerMenu, setMenuOptions, showMenu }; //# sourceMappingURL=menu.d.ts.map