import { HttpClient } from '@angular/common/http'; import { RequestBase } from './request.base'; import { TextmatePathConfig } from './vscode.define'; import * as i0 from "@angular/core"; /** * @docs-service * @description monaco-editor使用textmate方式解析代码的服务 * @export * */ export declare class CyiaMonacoTextmateService extends RequestBase { private grammar; private configuration; private theme; constructor(http: HttpClient, config: TextmatePathConfig); private readonly vscodeOnigurumaPath; private readonly textmateGrammarMapPath; private readonly textmateThemeListPath; private readonly textmateConfigurationListPath; private registry; private monaco; /** 2.初始化相关逻辑,需要在初始化后,才能执行monaco的一些操作 */ init(autoRegistry?: boolean): Promise; private loadWasm; private register; /** 1.传入`monaco`模块 */ setMonaco(monaco: any): void; /** 获得主题列表 */ getThemeList(): Promise; private fetchLanguageInfo; /** * @description 定义主题,代替 `monaco.editor.defineTheme` * @param name 从`getThemeList`方法中返回的名字 * * */ defineTheme(name: string): Promise; /** 自动注册语言 */ private registerLanguages; /** 手动注册语言 */ manualRegisterLanguage(languageId: string): Promise; /** 通过语言别名或者id,获得语言的id */ getLanguageId(languageIdOrType: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }