import { EventEmitter } from '../../stencil-public-runtime'; /** * Navigation menu context shared with child components */ export interface NavigationMenuContext { activeItem: string | null; hoveredTrigger: string | null; isMobile: boolean; registerItem: (id: string) => void; unregisterItem: (id: string) => void; openItem: (id: string) => void; closeItem: () => void; } export declare class SekiNavigationMenu { el: HTMLElement; /** Breakpoint in pixels for mobile hamburger mode */ mobileBreakpoint: number; /** Side from which mobile sheet opens */ mobileSide: 'left' | 'right'; /** Accessible label for the navigation */ ariaLabel: string; /** Currently open menu item ID */ activeItem: string | null; /** Currently hovered trigger ID (for indicator positioning) */ hoveredTrigger: string | null; /** Whether mobile mode is active */ isMobile: boolean; /** Whether mobile sheet is open */ mobileSheetOpen: boolean; /** Emitted when a menu item opens */ menuOpen: EventEmitter<{ triggerId: string; }>; /** Emitted when a menu item closes */ menuClose: EventEmitter<{ triggerId: string; }>; /** Emitted when mobile sheet toggles */ mobileToggle: EventEmitter<{ open: boolean; }>; /** * Internal: notifies subscribed items that the menu's activeItem/isMobile * state changed, so they can resync via closest(). Not part of the public * API — see context-bridge.ts. * * Stencil's compiler statically parses @Event(...) decorator options via * AST inspection, not runtime evaluation, so an imported identifier like * SEKI_CONTEXT_CHANGE_EVENT is silently ignored and the property name is * used as a fallback instead — only a string literal works here. Keep this * in sync with SEKI_CONTEXT_CHANGE_EVENT in context-bridge.ts. */ navigationMenuContextChange: EventEmitter; private resizeObserver?; private registeredItems; private closeTimeout?; private openTimeout?; private hasLoaded; /** * Non-modal place on the shared overlay stack (utils/overlay.ts) while a * menu item or the mobile sheet is open. Escape goes to the topmost open * layer only, so inside a dialog one Escape closes the menu and leaves the * dialog open; before this the dialog (the only layer on the stack) closed * on the same key press. Opened after the dialog, the menu sits above it. */ private layer; componentWillLoad(): void; connectedCallback(): void; componentDidLoad(): void; disconnectedCallback(): void; syncLayer(): void; /** Get the navigation menu context for child components */ getContext(): Promise; /** Open a specific menu item */ open(itemId: string): Promise; /** Close the currently open menu item */ close(): Promise; /** Toggle mobile sheet */ toggleMobileSheet(): Promise; private setupResizeObserver; private cleanupResizeObserver; private checkMobileBreakpoint; private clickOutsideHandler; private setupClickOutside; private cleanupClickOutside; private registerItem; private unregisterItem; private openItem; private closeItem; /** * Set the hovered trigger (drives the viewport indicator position). * * Invoked cross-instance by seki-navigation-menu-trigger, so it must be an * @Method — a plain public method exists only on the class instance, not on * the host element, and is silently unreachable across component instances in * the lazy build and under newSpecPage() (#270). */ setHoveredTrigger(id: string | null): Promise; private buildNavigationMenuContext; private publishNavigationMenuContext; /** Schedule opening with delay (for hover) */ scheduleOpen(id: string, delay?: number): Promise; /** Schedule closing with delay (for hover) */ scheduleClose(delay?: number): Promise; /** Cancel scheduled close (when entering content) */ cancelClose(): Promise; private handleHamburgerClick; private handleSheetClose; private handleBackdropClick; render(): any; private renderDesktopNav; private renderMobileNav; }