import { languages } from './grammars'; import { themes } from './themes'; import type { CacheEntry, FastTokenLine, Language, Plugin, RenderedCode, RenderOptions, SyntaxHighlighterConfig, Theme, } from './types'; /** * Create a new highlighter instance */ export declare function createHighlighter(config?: Partial): Promise; export declare class Highlighter implements IHighlighter { private config: SyntaxHighlighterConfig; private languages: Map; private themes: Map; private cache: Map; private plugins: Plugin[]; constructor(config: SyntaxHighlighterConfig); private initializeDefaults(): void; private loadPlugin(plugin: Plugin): Promise; highlightSync(code: string, lang: string, options?: RenderOptions): RenderedCode; highlight(code: string, lang: string, options?: RenderOptions): Promise; highlightFast(code: string, lang: string): FastTokenLine[]; loadLanguage(language: Language): Promise; loadTheme(theme: Theme): Promise; getSupportedLanguages(): string[]; getSupportedThemes(): string[]; private getLanguageById(id: string): Language | undefined; private resolveTheme(themeOption?: string | Theme): Theme; private getCacheKey(code: string, lang: string, options: RenderOptions): string; private hashCode(str: string): string; clearCache(): void; getCacheSize(): number; }