export interface AnchorItem { href: string; title: string; children: AnchorItem[]; nodeName: string; nodeTitle: string; } interface TocSidebarProps { anchors: AnchorItem[]; activeId: string; visible: boolean; onClose: () => void; } declare function TocSidebar({ anchors, activeId, visible, onClose }: TocSidebarProps): import("react").JSX.Element | null; export default TocSidebar;