import { Parent } from 'unist'; type TocItem = { value: string; url: string; depth: number; }; type Toc = TocItem[]; /** * Extracts TOC headings from markdown file and adds it to the file's data object. */ declare function remarkTocHeadings(): (tree: Parent, file: any) => void; /** * Passes markdown file through remark to extract TOC headings * * @param {string} markdown * @return {*} {Promise} */ declare function extractTocHeadings(markdown: string): Promise; export { Toc, TocItem, extractTocHeadings, remarkTocHeadings };