import React from 'react'; import type { NavTreeProps } from './types'; /** * A sidebar that nests itself. * * Hand it the flat list of routes an app already has — with a category on each * — and it groups, orders, and renders them as a tree: the branches above the * current page open on their own, the row for that page is marked and scrolled * to, and which branches are open survives a reload. Rows are real links on * web, so cmd-click, middle-click and crawlers work. * * Everything past `items` has a default that suits a docs sidebar, so the * one-prop version is the intended way to use it: * * ```tsx * router.push(i.href)} /> * ``` */ export declare const NavTree: React.FC; export default NavTree;