/** * Menu-level context provided by SidebarMenu. * Read by SidebarMenuTrigger to access toggle state and handler. */ interface SidebarMenuContextValue { /** Whether the menu is currently expanded */ isOpen: boolean; /** Whether the menu has child items and can expand */ canExpand: boolean; /** Toggle the menu open/closed */ toggle: () => void; } declare const SidebarMenuContext: import('react').Context; /** * Hook to access the menu context. * Must be used within a SidebarMenu component. */ declare const useSidebarMenuContext: () => SidebarMenuContextValue; export { SidebarMenuContext, useSidebarMenuContext }; export type { SidebarMenuContextValue };