import { n as DistributiveOmit } from "../types-Bt4vrwsT.js"; import { ResolvedShikiConfig } from "./config.js"; import { CoreHighlightOptions } from "./core/index.js"; import { ReactNode } from "react"; import * as shiki from "shiki"; import { BundledLanguage, BundledTheme, LanguageRegistration, ThemeRegistrationAny } from "shiki"; import { Root } from "hast"; //#region src/highlight/index.d.ts type HighlightOptions = DistributiveOmit & { /** * The Regex Engine for Shiki * * @defaultValue 'js' */ engine?: 'js' | 'oniguruma'; }; declare function highlightHast(code: string, options: HighlightOptions): Promise; /** * Get Shiki highlighter instance of Fumadocs (mostly for internal use, you should use Shiki directly over this). * * @param engineType - Shiki Regex engine to use. * @param options - Shiki options. */ declare function getHighlighter(engineType: 'js' | 'oniguruma', options?: { langs?: (BundledLanguage | LanguageRegistration)[]; themes?: (BundledTheme | ThemeRegistrationAny)[]; }): Promise; declare function highlight(code: string, options: HighlightOptions): Promise; declare const configDefault: ResolvedShikiConfig; /** config using the WASM powered Regex engine */ declare const configWASM: ResolvedShikiConfig; //#endregion export { HighlightOptions, configDefault, configWASM, getHighlighter, highlight, highlightHast };