import { Tree } from "lezer-tree"; import { StyleModule } from "style-mod"; import { Extension } from "@codemirror/next/state"; export declare class Tag { readonly set: Tag[]; static define(parent?: Tag): Tag; static defineModifier(): (tag: Tag) => Tag; } export declare function styleTags(spec: { [selector: string]: Tag | readonly Tag[]; }): import("lezer-tree").NodePropSource; export declare class HighlightStyle { readonly extension: Extension; readonly module: StyleModule; private map; private constructor(); match(tag: Tag): string | null; static define(...specs: readonly { tag: Tag | readonly Tag[]; [prop: string]: any; }[]): HighlightStyle; } export declare function highlightTree(tree: Tree, getStyle: (tag: Tag) => string | null, putStyle: (from: number, to: number, classes: string) => void): void; export declare const tags: { comment: Tag; lineComment: Tag; blockComment: Tag; docComment: Tag; name: Tag; variableName: Tag; typeName: Tag; propertyName: Tag; className: Tag; labelName: Tag; namespace: Tag; macroName: Tag; literal: Tag; string: Tag; docString: Tag; character: Tag; number: Tag; integer: Tag; float: Tag; bool: Tag; regexp: Tag; escape: Tag; color: Tag; url: Tag; keyword: Tag; self: Tag; null: Tag; atom: Tag; unit: Tag; modifier: Tag; operatorKeyword: Tag; controlKeyword: Tag; definitionKeyword: Tag; operator: Tag; derefOperator: Tag; arithmeticOperator: Tag; logicOperator: Tag; bitwiseOperator: Tag; compareOperator: Tag; updateOperator: Tag; definitionOperator: Tag; typeOperator: Tag; controlOperator: Tag; punctuation: Tag; separator: Tag; bracket: Tag; angleBracket: Tag; squareBracket: Tag; paren: Tag; brace: Tag; content: Tag; heading: Tag; heading1: Tag; heading2: Tag; heading3: Tag; heading4: Tag; heading5: Tag; heading6: Tag; contentSeparator: Tag; list: Tag; quote: Tag; emphasis: Tag; strong: Tag; link: Tag; monospace: Tag; inserted: Tag; deleted: Tag; changed: Tag; invalid: Tag; meta: Tag; documentMeta: Tag; annotation: Tag; processingInstruction: Tag; definition: (tag: Tag) => Tag; constant: (tag: Tag) => Tag; function: (tag: Tag) => Tag; standard: (tag: Tag) => Tag; local: (tag: Tag) => Tag; special: (tag: Tag) => Tag; }; export declare const defaultHighlightStyle: HighlightStyle; //# sourceMappingURL=highlight.d.ts.map