import { MenuItem } from 'primevue/menuitem'; export type { MenuItem } from 'primevue/menuitem'; /** * Props interface for CuiMenu component */ export interface CuiMenuProps { /** * @description Array of menu items to display */ model?: MenuItem[]; /** * @description Whether the menu should be displayed as a popup overlay */ popup?: boolean; /** * @description Whether to automatically close the menu when an item is clicked. * Can be overridden per item using the item's autoClose property. * @default true */ autoClose?: boolean; /** * @description Whether to automatically manage layering (z-index) */ autoZIndex?: boolean; /** * @description Base z-index value to use for layering */ baseZIndex?: number; /** * @description A valid query selector or an HTMLElement to specify where the overlay gets attached */ appendTo?: "body" | "self" | string | HTMLElement; /** * @description Index of the element in tabbing order */ tabindex?: number; /** * @description Accessible label for the menu */ ariaLabel?: string; /** * @description ID of the element that labels the menu for accessibility */ ariaLabelledby?: string; } declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<{ /** * Custom content template to display before the menu items */ start?: () => any; /** * Custom content template to display after the menu items */ end?: () => any; /** * Custom template for rendering a menu item * @arg {object} slotProps - The slot properties * @arg {MenuItem} slotProps.item - The menu item data * @arg {string} slotProps.label - Resolved label text of the item * @arg {object} slotProps.props - Bindings for the item element */ item?: (props: { item: MenuItem; label: string; props: object; }) => any; /** * Custom template for rendering menu item icons * @arg {object} slotProps - The slot properties * @arg {MenuItem} slotProps.item - The menu item data * @arg {any} slotProps.class - CSS class binding for the icon */ itemicon?: (props: { item: MenuItem; class: any; }) => any; /** * Custom template for rendering submenu headers * @arg {object} slotProps - The slot properties * @arg {MenuItem} slotProps.item - The submenu header item data */ submenuheader?: (props: { item: MenuItem; }) => any; }> & { /** * Custom content template to display before the menu items */ start?: () => any; /** * Custom content template to display after the menu items */ end?: () => any; /** * Custom template for rendering a menu item * @arg {object} slotProps - The slot properties * @arg {MenuItem} slotProps.item - The menu item data * @arg {string} slotProps.label - Resolved label text of the item * @arg {object} slotProps.props - Bindings for the item element */ item?: (props: { item: MenuItem; label: string; props: object; }) => any; /** * Custom template for rendering menu item icons * @arg {object} slotProps - The slot properties * @arg {MenuItem} slotProps.item - The menu item data * @arg {any} slotProps.class - CSS class binding for the icon */ itemicon?: (props: { item: MenuItem; class: any; }) => any; /** * Custom template for rendering submenu headers * @arg {object} slotProps - The slot properties * @arg {MenuItem} slotProps.item - The submenu header item data */ submenuheader?: (props: { item: MenuItem; }) => any; }; refs: { menuRef: HTMLDivElement; listRef: HTMLUListElement; }; rootEl: any; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: import('vue').DefineComponent void; /** * Show the popup menu */ show: (event: Event, anchor?: HTMLElement) => Promise; /** * Hide the popup menu */ hide: () => void; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { focus: (event: Event) => any; blur: (event: Event) => any; hide: () => any; show: () => any; }, string, import('vue').PublicProps, Readonly & Readonly<{ onFocus?: ((event: Event) => any) | undefined; onBlur?: ((event: Event) => any) | undefined; onHide?: (() => any) | undefined; onShow?: (() => any) | undefined; }>, { tabindex: number; autoZIndex: boolean; baseZIndex: number; appendTo: "body" | "self" | string | HTMLElement; model: MenuItem[]; autoClose: boolean; popup: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { menuRef: HTMLDivElement; listRef: HTMLUListElement; }, any>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };