import type { MenuDescriptor } from "../CascadingMenuProps"; export type menuState = { id: string; flipped?: boolean; highlightedItemIndex?: number; level: number; parentId: string | null; childMenus: { [key: number]: string; }; menuItems: MenuDescriptor[]; }; export type flattenedMenuState = { [key: string]: menuState; }; export declare function deriveFlatStateFromTree(tree: MenuDescriptor, parentId?: string | null, level?: number, generatedId?: string): flattenedMenuState; export declare function hasSubMenu(item: MenuDescriptor): boolean; export declare function isMenuItem(item: MenuDescriptor): boolean; export declare function hasIcon(item: MenuDescriptor): boolean;