import * as _angular_core from '@angular/core'; import { OnDestroy, ElementRef } from '@angular/core'; interface ClientPageMenuItem { icon: string; title: string; subtitle?: string; /** * Secondary line rendered under `title` in the menu row itself. Separate * from `subtitle`, which only feeds `mt-client-page`'s header description. */ caption?: string; /** * Top-level only. Consecutive items sharing the same `section` render * together inside a titled card (e.g. pinned shortcuts above the main list). * Items without it render as plain rows, so existing usage is unaffected. */ section?: string; color: string; count?: number; key: string; children?: ClientPageMenuItem[]; /** * Marks this item as expandable before `children` is populated (lazy loading). * Defaults to `!!children?.length` when omitted, so eager usage is unaffected. */ hasChildren?: boolean; /** True while the consumer is fetching this item's children; renders skeleton rows in place of `children`. */ childrenLoading?: boolean; } /** A run of consecutive top-level items, grouped by their shared `section` (if any). */ interface ClientPageMenuGroup { section?: string; items: ClientPageMenuItem[]; } declare class ClientPageMenu implements OnDestroy { private syncFrameId; /** List of menu items to display */ readonly menuItems: _angular_core.InputSignal; /** Whether menu items are loading */ readonly loading: _angular_core.InputSignal; /** Currently selected menu item */ readonly selectedItem: _angular_core.InputSignal; /** Shows an expand/collapse chevron on expandable rows (opt-in) */ readonly showExpandIcon: _angular_core.InputSignal; /** `menuItems()` split into runs of consecutive items sharing a `section` */ readonly groups: _angular_core.Signal; /** Emitted when a menu item is clicked */ readonly menuItemClick: _angular_core.OutputEmitterRef; /** * Emitted the first time a lazy parent (`hasChildren` true, no `children` yet) is expanded. * The consumer should fetch and then update the item with `children` (and `childrenLoading: false`). */ readonly loadChildren: _angular_core.OutputEmitterRef; readonly menuContainer: _angular_core.Signal | undefined>; readonly menuItemElements: _angular_core.Signal[]>; /** Keys of currently expanded parent items (accordion: max one at a time) */ readonly expandedKeys: _angular_core.WritableSignal>; constructor(); selectItem(item: ClientPageMenuItem): void; isParentActive(item: ClientPageMenuItem): boolean; /** Whether an item can be expanded — already has children, or is flagged as a lazy parent via `hasChildren`. */ isExpandable(item: ClientPageMenuItem): boolean; ngOnDestroy(): void; getAvatarStyle(color: string): Record; /** Emits `loadChildren` only if this item's children genuinely still need fetching. */ private maybeRequestChildren; private queueSelectedItemSync; private syncSelectedItemIntoView; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { ClientPageMenu }; export type { ClientPageMenuGroup, ClientPageMenuItem };