export type XmlTokenType = 'tagName' | 'attrName' | 'attrValue' | 'text' | 'comment' | 'cdata' | 'declaration' | 'doctype' | 'punctuation'; export interface XmlToken { type: XmlTokenType; value: string; } /** * Tokenizes an XML string for syntax highlighting without parsing it into a * DOM. Preserves the source exactly - concatenating every token's `value` * reproduces the input - so malformed or partial XML still highlights * whatever it recognizes instead of failing outright. */ export declare function tokenizeXml(source: string): XmlToken[];