import type { Root } from 'hast'; import { type LanguageFn, createLowlight } from 'lowlight'; import type { VFile } from 'vfile'; type HighlightOptions = { /** Optional existing lowlight instance to use */ lowlight?: ReturnType | undefined; /** Register more aliases (optional); passed to `lowlight.registerAlias` */ aliases?: Readonly | string>> | null | undefined; /** Register languages (default: `common`) passed to `lowlight.register` */ languages?: Readonly> | null | undefined; /** List of language names to not highlight (optional). Note: you can also add `no-highlight` classes. */ plainText?: ReadonlyArray | null | undefined; /** Class prefix (default: `'hljs-'`) */ prefix?: string | null | undefined; /** Names of languages to check when detecting (default: all registered languages) */ subset?: ReadonlyArray | null | undefined; /** Option to autodetect languages */ detect?: boolean; }; /** * Lowlight syntax highlighting plugin for rehype pipelines * * Derived from: @url https://github.com/rehypejs/rehype-highlight/blob/main/lib/index.js */ export declare function rehypeHighlight(options?: Readonly | null | undefined): (tree: Root, file: VFile) => void; export {}; //# sourceMappingURL=rehype-highlight.d.ts.map