import { PageTree } from 'fumadocs-core/server'; import { ReactNode } from 'react'; interface TreeContextType { /** * The path to the current node */ path: PageTree.Node[]; /** * Get neighbours of current `pathname` */ getNeighbours: () => [PageTree.Item | undefined, PageTree.Item | undefined]; root: PageTree.Root | PageTree.Folder; } declare function TreeContextProvider({ children, tree, }: { tree: PageTree.Root; children: ReactNode; }): ReactNode; declare function useTreeContext(): TreeContextType; export { TreeContextProvider as T, useTreeContext as u };