import { Root } from 'hast'; export interface TocOptions { enable?: boolean; depth?: number; title?: string; } export default function rehypeToc(options?: TocOptions): (tree: Root) => void;