import React, { HTMLProps, ReactElement } from 'react'; import { TocItem, TocItemProps } from './TocItem'; interface TocListProps extends Omit, 'children'> { /** * Children are expected to be TocItem elements. * */ children: ReactElement | Array>; } interface TocListContext { registerRef: (index: number, ref: React.RefObject) => void; handleKeyDown: (e: React.KeyboardEvent) => void; } declare const TocListContext: React.Context; declare const TocList: { ({ children, className, ...rest }: TocListProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; declare const useTocListContext: () => TocListContext; export { TocList, useTocListContext }; export type { TocListProps };