import { H as HighlighterGeneric, a as HighlighterCoreOptions, B as BundledHighlighterOptions, L as LanguageInput, T as ThemeInput, C as CodeToHastOptions, R as Root, b as RequireKeys, c as CodeToThemedTokensOptions, d as ThemedToken, e as CodeToTokensWithThemesOptions, f as ThemedTokenWithVariants, M as MaybeArray, E as Element, S as ShikiInternal, g as ThemeRegistrationResolved, h as TokenizeWithThemeOptions, i as ShikijiTransformerContextCommon, j as ThemeRegistrationAny } from './chunk-types.mjs'; export { A as AnsiLanguage, n as Awaitable, Z as BundledLanguageInfo, _ as BundledThemeInfo, x as CodeOptionsMeta, v as CodeOptionsMultipleThemes, u as CodeOptionsSingleTheme, w as CodeOptionsThemes, t as CodeToHastOptionsCommon, X as DynamicImportLanguageRegistration, Y as DynamicImportThemeRegistration, F as FontStyle, I as Grammar, O as HtmlRendererOptions, N as HtmlRendererOptionsCommon, I as IGrammar, k as IRawGrammar, s as LanguageRegistration, o as MaybeGetter, p as MaybeModule, P as PlainTextLanguage, k as RawGrammar, r as ResolveBundleKey, K as ShikijiTransformer, J as ShikijiTransformerContext, G as ShikijiTransformerContextMeta, m as SpecialLanguage, q as StringLiteralUnion, D as ThemeRegistration, z as ThemeRegistrationRaw, U as ThemedTokenExplanation, Q as ThemedTokenScopeExplanation, V as TokenBase, W as TokenStyles, y as TransformerOptions, l as loadWasm } from './chunk-types.mjs'; type HighlighterCore = HighlighterGeneric; declare function getHighlighterCore(options?: HighlighterCoreOptions): Promise; type GetHighlighterFactory = (options?: BundledHighlighterOptions) => Promise>; /** * Create a `getHighlighter` function with bundled themes and languages. * * @param bundledLanguages * @param bundledThemes * @param loadWasm */ declare function createdBundledHighlighter(bundledLanguages: Record, bundledThemes: Record, loadWasm: HighlighterCoreOptions['loadWasm']): GetHighlighterFactory; declare function createSingletonShorthands(getHighlighter: GetHighlighterFactory): { getSingletonHighlighter: () => Promise>; codeToHtml: (code: string, options: CodeToHastOptions) => Promise; codeToHast: (code: string, options: CodeToHastOptions) => Promise; codeToThemedTokens: (code: string, options: RequireKeys, 'theme' | 'lang'>) => Promise; codeToTokensWithThemes: (code: string, options: RequireKeys, 'themes' | 'lang'>) => Promise; }; declare function isPlaintext(lang: string | null | undefined): boolean; declare function toArray(x: MaybeArray): T[]; declare function isSpecialLang(lang: string): boolean; declare function addClassToHast(node: Element, className: string | string[]): void; /** * Get the minimal shiki context for rendering. */ declare function getShikiInternal(options?: HighlighterCoreOptions): Promise; /** * @deprecated Use `getShikiInternal` instead. */ declare const getShikiContext: typeof getShikiInternal; declare function codeToThemedTokens(internal: ShikiInternal, code: string, options?: CodeToThemedTokensOptions): ThemedToken[][]; declare function tokenizeAnsiWithTheme(theme: ThemeRegistrationResolved, fileContents: string, options?: TokenizeWithThemeOptions): ThemedToken[][]; declare function codeToHast(internal: ShikiInternal, code: string, options: CodeToHastOptions, transformerContext?: ShikijiTransformerContextCommon): Root; /** * Get highlighted code in HTML. */ declare function codeToHtml(internal: ShikiInternal, code: string, options: CodeToHastOptions): string; /** * Get tokens with multiple themes */ declare function codeToTokensWithThemes(internal: ShikiInternal, code: string, options: CodeToTokensWithThemesOptions): ThemedTokenWithVariants[][]; /** * Normalize a textmate theme to shiki theme */ declare function normalizeTheme(rawTheme: ThemeRegistrationAny): ThemeRegistrationResolved; /** * @deprecated Use `normalizeTheme` instead. */ declare const toShikiTheme: typeof normalizeTheme; export { BundledHighlighterOptions, CodeToHastOptions, CodeToThemedTokensOptions, CodeToTokensWithThemesOptions, type GetHighlighterFactory, type HighlighterCore, HighlighterCoreOptions, HighlighterGeneric, LanguageInput, MaybeArray, RequireKeys, ShikiInternal, ShikijiTransformerContextCommon, ThemeInput, ThemeRegistrationAny, ThemeRegistrationResolved, ThemedToken, ThemedTokenWithVariants, TokenizeWithThemeOptions, addClassToHast, codeToHast, codeToHtml, codeToThemedTokens, codeToTokensWithThemes, createSingletonShorthands, createdBundledHighlighter, getHighlighterCore, getShikiContext, getShikiInternal, isPlaintext, isSpecialLang, normalizeTheme, toArray, toShikiTheme, tokenizeAnsiWithTheme };