import React from 'react'; interface TocSectionsProps extends React.HTMLProps { /** * Used in an IntersectionObserverInit object to customize behavior with the Table of contents. * * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver#rootmargin} for further information. * */ rootMargin?: string; /** * Used in an IntersectionObserverInit object to customize behavior with the Table of contents. * * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver#threshold} for further information. * */ threshold?: number | number[]; } interface TocSectionsContext { registerRef: (index: number, ref: React.RefObject) => void; } declare const TocSectionsContext: React.Context; declare const TocSections: { ({ children, rootMargin, threshold, className, ...rest }: TocSectionsProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; declare const useTocSectionsContext: () => TocSectionsContext; export { TocSections, useTocSectionsContext };