import { MenubarConfig, MenubarItem } from './types';
export type { MenubarConfig, MenubarItem, MenuItem } from './types';
export declare class Menubar {
    private readonly container;
    private readonly items;
    private readonly className;
    private readonly menubarId;
    private barEl;
    private openIndex;
    private activeItemIndex;
    private dropdownEl;
    private destroyed;
    /** Bound event handlers for cleanup */
    private readonly handleDocumentClick;
    private readonly handleKeyDown;
    constructor(config: MenubarConfig);
    /** Update the menubar items and re-render */
    update(items: MenubarItem[]): void;
    /** Remove all DOM elements and clean up */
    destroy(): void;
    /** Close the currently open menu */
    private closeMenu;
    /** Open a specific top-level menu by index */
    private openMenu;
    /** Render menu items into a container */
    private renderMenuItems;
    /** Update aria-expanded on trigger buttons */
    private updateTriggerStates;
    /** Highlight the active item in the dropdown */
    private highlightActiveItem;
    /** Get the count of navigable items in the current dropdown */
    private getNavigableItemCount;
    /** Handle keyboard navigation */
    private onKeyDown;
    /** Render the full menubar */
    private render;
}
//# sourceMappingURL=index.d.ts.map