import * as react_jsx_runtime from 'react/jsx-runtime'; type TocItem = { value: string; url: string; depth: number; }; type Toc = TocItem[]; interface TOCInlineProps { toc: Toc; indentDepth?: number; fromHeading?: number; toHeading?: number; asDisclosure?: boolean; exclude?: string | string[]; collapse?: boolean; headerLabel?: string; } /** * Generates an inline table of contents * Exclude titles matching this string (new RegExp('^(' + string + ')$', 'i')). * If an array is passed the array gets joined with a pipe (new RegExp('^(' + array.join('|') + ')$', 'i')). * * `asDisclosure` will wrap the TOC in a `details` element with a `summary` element. * `collapse` will collapse the TOC when `AsDisclosure` is true. * * @param {TOCInlineProps} { * toc, * indentDepth = 3, * fromHeading = 1, * toHeading = 6, * asDisclosure = false, * exclude = '', * collapse = false, * } * */ declare const TOCInline: ({ toc, indentDepth, fromHeading, toHeading, asDisclosure, exclude, collapse, headerLabel, }: TOCInlineProps) => react_jsx_runtime.JSX.Element; export { TOCInlineProps, TOCInline as default };