import { p as ShikiTheme, r as BoltdocsConfig } from "../../config-xtS0ZkMm.mjs"; import * as _$shiki from "shiki"; import { CodeToHastOptions } from "shiki"; //#region src/node/mdx/shiki-adapter.d.ts interface ParsedMeta { title?: string; lineNumbers?: boolean; wordWrap?: boolean; [key: string]: any; } /** * Parses a meta string into a structured ParsedMeta object. */ declare function parseMetaString(metaStr: string): ParsedMeta; /** * Unified Shiki Adapter for Boltdocs. * Centralizes theme resolution, transformer configuration, and rendering logic. */ declare class ShikiAdapter { private config; constructor(config?: BoltdocsConfig); /** * Resolves the code theme from Boltdocs configuration. */ getTheme(): ShikiTheme | { light: ShikiTheme; dark: ShikiTheme; }; /** * Creates a Shiki highlighter instance with the configured themes. */ getHighlighter(): Promise<_$shiki.HighlighterCore>; /** * Assembles Shiki options including transformers for a specific code block. */ getOptions(lang: string, meta: string | ParsedMeta): CodeToHastOptions; /** * Renders code to HTML using the Boltdocs Shiki pipeline. * Safely handles highlighter exceptions by falling back to escaped pre. */ render(code: string, lang: string, meta: string | ParsedMeta): Promise; } /** * Returns a cached ShikiAdapter instance. * Recreates only if the relevant codeTheme configuration values change deeply. */ declare function getShikiAdapter(config?: BoltdocsConfig): ShikiAdapter; //#endregion export { ParsedMeta, ShikiAdapter, getShikiAdapter, parseMetaString };