import { Processor, Transformer } from 'unified'; import { Root } from 'hast'; interface RehypeTocOptions { /** * Export generated toc as a variable * * @defaultValue true */ exportToc?: boolean; } declare function rehypeToc(this: Processor, { exportToc }?: RehypeTocOptions): Transformer; export { type RehypeTocOptions, rehypeToc };