import { LayoutTab } from "../layouts/shared/index.js"; import { ReactNode } from "react"; import * as PageTree from "fumadocs-core/page-tree"; type MakeRequired = Omit & Pick, K>; interface TreeContextType { root: MakeRequired; full: PageTree.Root; } export declare function TreeContextProvider({ tree: rawTree, children }: { tree: PageTree.Root; children: ReactNode; }): import("react").JSX.Element; export declare function useTreePath(): PageTree.Node[]; export declare function useTreeContext(): TreeContextType; export interface TabsGroup { /** the root folder on the current page's path, undefined for tabs not bound to the page tree */ active?: PageTree.Folder; options: LayoutTab[]; } /** * Group tabs by the root folders on the current page's path (outermost first): each tab is * matched to its root folder, linking to the projection of current page when possible. * * Tabs not bound to the page tree are appended to the group of `root: true` folders. */ export declare function useTabsGroups(tabs: LayoutTab[]): TabsGroup[]; export {};