import { default as React } from 'react';
export interface TocHeading {
    id: string;
    text: string;
    level: 2 | 3;
}
export interface TableOfContentsProps {
    headings: TocHeading[];
    className?: string;
}
/**
 * Sticky table-of-contents sidebar with scroll-spy.
 *
 * Highlights the heading currently visible in the viewport
 * using an IntersectionObserver.
 */
export declare function TableOfContents({ headings, className }: Readonly<TableOfContentsProps>): React.JSX.Element | null;
//# sourceMappingURL=TableOfContents.d.ts.map