import { LanguageFn } from 'highlight.js'; import { X as XMarkdownExtension } from '../../types-B4BDq4gJ.js'; interface CodeHighlightOptions { /** * Map of language registrations. Keys are language names (or aliases), * values are the language definition modules from highlight.js. * * @example * ```ts * import javascript from 'highlight.js/lib/languages/javascript'; * import python from 'highlight.js/lib/languages/python'; * CodeHighlight({ languages: { javascript, python } }) * ``` * * When omitted, all commonly-used languages are registered automatically. */ languages?: Record; /** Options forwarded to hljs.highlight(). */ hljsOptions?: { ignoreIllegals?: boolean; }; } declare function CodeHighlight(options?: CodeHighlightOptions): XMarkdownExtension; export { type CodeHighlightOptions, CodeHighlight as default };