/** * Base nav item, displayed as text */ export interface NavItem { text: string; icon?: string; ariaLabel?: string; } /** * Base nav group, has nav items children */ export interface NavGroup extends NavItem { children: T[]; } /** * Props for `` */ export interface NavLink extends NavItem { link: string; rel?: string; target?: string; activeMatch?: string; } /** * Navbar types */ export declare type NavbarItem = NavLink; export declare type NavbarGroup = NavGroup; export declare type NavbarConfig = (NavbarItem | NavbarGroup | string)[]; export declare type ResolvedNavbarItem = NavbarItem | NavGroup; /** * Sidebar types */ export declare type SidebarItem = NavItem & Partial; export declare type SidebarGroup = SidebarItem & NavGroup; export declare type SidebarGroupCollapsible = SidebarGroup & { collapsible?: boolean; }; export declare type SidebarConfigArray = (SidebarItem | SidebarGroupCollapsible | string)[]; export declare type SidebarConfigObject = Record; export declare type SidebarConfig = SidebarConfigArray | SidebarConfigObject; export declare type ResolvedSidebarItem = SidebarItem & Partial> & { collapsible?: boolean; };