15 lines
671 B
TypeScript
Raw Normal View History

2025-09-05 14:59:21 +08:00
import type { LanguageInput, ThemeInput, RegexEngine } from 'shiki';
import type { MdcConfig, Highlighter } from '@nuxtjs/mdc';
export interface CreateShikiHighlighterOptions {
themes?: ThemeInput[];
langs?: LanguageInput[];
bundledThemes?: Record<string, ThemeInput>;
bundledLangs?: Record<string, LanguageInput>;
options?: {
wrapperStyle?: string;
};
getMdcConfigs?: () => Promise<MdcConfig[]>;
engine?: RegexEngine | Promise<RegexEngine>;
}
export declare function createShikiHighlighter({ langs, themes, bundledLangs, bundledThemes, getMdcConfigs, options: shikiOptions, engine }?: CreateShikiHighlighterOptions): Highlighter;