/** * Core class for syntax highlighting Wikitext. * Tokenizes input text into structured tokens and renders them as HTML. */ import type { HighlightToken, HighlightConfig } from "./types"; import { WikitextTokenizer } from "./tokenizer"; export declare class WikitextHighlighter { protected extensionTags: string[]; protected tokenizer: WikitextTokenizer; constructor(config?: HighlightConfig); highlight(text: string): string; tokenize(text: string): HighlightToken[][]; protected tokenizeLines(lines: string[]): HighlightToken[][]; protected renderLines(tokensPerLine: HighlightToken[][]): string[]; protected renderToken({ text, className }: HighlightToken): string; static getDefaultStyles(): string; } export type { HighlightToken, HighlightConfig } from "./types";