import { PropDef, SyElement } from '@sylar_iii/ui'; import '@sylar_iii/ui/icon'; import type { SySidebarEntry, SySidebarMode } from './sidebar.types'; /** Desktop column or mobile drawer; a router-agnostic tree of links and groups. Links are real `` elements. */ export declare class SySidebarElement extends SyElement { static props: Record; static styles: string; /** Tree to draw. Each entry needs a unique `id`. */ entries: SySidebarEntry[]; navLabel: string; mode: SySidebarMode; /** Width in px at or below which `auto` becomes the mobile drawer. */ breakpoint: number; /** Mobile drawer state. Ignored on desktop. */ open: boolean; /** Draw the bordered box around child icons too. Default: plain icons. */ childIconBorders: boolean; /** Accordion: opening a group closes its sibling groups. */ singleExpand: boolean; /** The app's current path, e.g. '/portal/icons#svg'. Sets aria-current on the matching link. */ current: string; /** Prefix for every link href, e.g. '#' for hash routing. */ hrefPrefix: string; private _nav; private _narrow; private _media; private readonly _expansion; private _groups; connectedCallback(): void; disconnectedCallback(): void; protected render(root: ShadowRoot): void; protected update(changed: ReadonlySet): void; private readonly _onMedia; private _watchMedia; private _isMobile; private _setOpen; /** Closes the drawer after a choice; desktop stays open. */ private _close; private _buildTree; private _list; private _group; private _link; /** Icon tile: sy-icon for sylar and URL icons, a light-DOM slot for CSS-class icons. */ private _icon; /** Same test as routerLinkActive(exact): path and fragment must match; query and matrix params are ignored. */ private _isActive; private _isExpanded; private _toggleGroup; private _applyExpansion; } declare global { interface HTMLElementTagNameMap { 'sy-sidebar': SySidebarElement; } }