import { type RehypeShikiCoreOptions } from '@shikijs/rehype/core'; import { type Options as AutolinkHeadingsOptions } from 'rehype-autolink-headings'; import { type Options as SlugOptions } from 'rehype-slug'; import type { PluggableList } from 'unified'; import type { Highlighter } from '../lib/highlight/index.ts'; import { type RehypeCodeBlockOptions } from './plugins/rehype-code-block.ts'; export interface RehypePluginOptions { /** * @link https://shiki.style/packages/rehype */ shiki?: RehypeShikiCoreOptions & { highlighter: Highlighter; }; /** * @link https://github.com/rehypejs/rehype-slug */ slug?: SlugOptions; /** * @link https://github.com/rehypejs/rehype-autolink-headings */ autolinkHeadings?: AutolinkHeadingsOptions; codeBlock?: RehypeCodeBlockOptions; } export declare function getRehypePlugins({ options, extra, }?: { extra?: PluggableList | null; options?: RehypePluginOptions | undefined; }): PluggableList;