import { TextLayout } from 'mono-layout'; import { IRawTheme } from 'vscode-textmate'; export type Theme = { tokenColors: IRawTheme[`settings`]; }; export declare function addSyntaxHighlightSupport(textLayout: TextLayout): { onRefresh: Set<() => void>; activate(scopeName: string | null): Promise; getGrammars(): { scopeName: string; }[]; setGrammars(grammars: Array<{ scopeName: string; }>): void; getTheme(): Theme; setTheme(theme: Theme | null): void; getTokens(): [string, string, string][][]; };