import * as _angular_core from '@angular/core'; import { MTIcon } from '@masterteam/icons'; interface SidebarItem { id: string | number; title: string; icon?: MTIcon; routerLink?: any[] | string; /** Absolute or app-relative URL for cross-app links. */ href?: string; /** * Optional nested items. When present the entry becomes a submenu: * an inline accordion while the sidebar is expanded, and a hover/focus * flyout panel beside the icon while the sidebar is collapsed. */ children?: SidebarItem[]; /** Show a placeholder spinner row while the children load lazily. */ loading?: boolean; } /** Positioned state for the collapsed-mode flyout panel. */ interface FlyoutState { item: SidebarItem; top: number; left?: number; right?: number; maxHeight: number; } declare class Sidebar { private readonly router; private readonly dir; items: _angular_core.InputSignal; logo: _angular_core.InputSignal; logoLink: _angular_core.InputSignal; title: _angular_core.InputSignal; subTitle: _angular_core.InputSignal; protected readonly hasTitle: _angular_core.Signal; protected readonly hasSubTitle: _angular_core.Signal; protected readonly hasBrandText: _angular_core.Signal; bgColor: _angular_core.InputSignal; bgImage: _angular_core.InputSignal; bgRepeat: _angular_core.InputSignalWithTransform; iconsColor: _angular_core.InputSignal; expanded: _angular_core.WritableSignal; expandedChange: _angular_core.OutputEmitterRef; /** Parent items the user forced open / closed, overriding auto-expand. */ private readonly openGroupIds; private readonly closedGroupIds; /** Currently anchored collapsed-mode flyout, if any. */ readonly flyout: _angular_core.WritableSignal; private flyoutCloseTimer; /** Live URL so active sections auto-expand their submenu. */ private readonly currentUrl; protected readonly isRtl: _angular_core.Signal; constructor(); toggleSidebar(): void; hasChildren(item: SidebarItem): boolean; isGroupOpen(item: SidebarItem): boolean; toggleGroup(item: SidebarItem, event?: Event): void; /** A parent is "active" when the current route matches it or any child. */ isSectionActive(item: SidebarItem): boolean; private linkMatches; private toPath; openFlyout(item: SidebarItem, event: Event): void; /** Keep the panel open while the pointer travels into it. */ cancelFlyoutClose(): void; scheduleFlyoutClose(): void; closeFlyout(): void; onViewportChange(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { Sidebar }; export type { SidebarItem };