import * as react_jsx_runtime from 'react/jsx-runtime'; import { TocEntry } from './types.cjs'; interface Props { entries: TocEntry[]; } /** * Right-rail "On this page" navigator with scroll-spy. * * Uses IntersectionObserver to track which heading is currently in the * viewport's top band and highlights the matching TOC entry. Falls back * to the last heading above the viewport when nothing is in view so the * TOC never blanks at the bottom of a long page. * * rootMargin tuned to `0 0 -65% 0` — heading becomes active when it * enters the top 35% of the viewport. That feels natural for reading * speed without ping-ponging at chapter boundaries. */ declare function DocsToc({ entries }: Props): react_jsx_runtime.JSX.Element | null; export { DocsToc };