import type { Element, Root } from 'hast'; import type { Plugin } from 'unified'; /** * Generate `id`s for headings and applies to headings with `id`s. * same as rehype-slug + rehype-autolink-headings, but support custom id. */ export declare const rehypeHeaderAnchor: Plugin<[], Root>; export declare const collectHeaderText: (node: Element) => string[];