/** * Apply syntax highlighting. * * @param {Readonly | null | undefined} [options] * Configuration (optional). * @returns * Transform. */ export default function rehypeHighlight(options?: Readonly | null | undefined): (tree: Root, file: VFile) => undefined; /** * Configuration (optional). */ export type Options = { /** * Register more aliases (optional); * passed to `lowlight.registerAlias`. */ aliases?: Readonly | string>> | null | undefined; /** * Highlight code without language classes by guessing its programming * language (default: `false`). */ detect?: boolean | 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; }; import type { Root } from 'hast'; import type { VFile } from 'vfile'; import type { LanguageFn } from 'lowlight'; //# sourceMappingURL=index.d.ts.map