import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IExtensionResourceLoaderService } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service"; import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service"; import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service"; import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service"; import { ITextMateTokenizationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeature.service"; import { IWorkbenchThemeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/themes/common/workbenchThemeService.service"; import type { IGrammar } from "@codingame/monaco-vscode-api/_virtual/main"; export declare class TextMateTokenizationFeature extends Disposable implements ITextMateTokenizationService { private readonly _languageService; private readonly _themeService; private readonly _extensionResourceLoaderService; private readonly _notificationService; private readonly _logService; private readonly _configurationService; private readonly _progressService; private readonly _environmentService; private readonly _instantiationService; private readonly _telemetryService; private static reportTokenizationTimeCounter; _serviceBrand: undefined; private readonly _styleElement; private readonly _createdModes; private readonly _encounteredLanguages; private _debugMode; private _debugModePrintFunc; private _grammarDefinitions; private _grammarFactory; private readonly _tokenizersRegistrations; private _currentTheme; private _currentTokenColorMap; private _currentTokenFontMap; private readonly _threadedBackgroundTokenizerFactory; constructor(_languageService: ILanguageService, _themeService: IWorkbenchThemeService, _extensionResourceLoaderService: IExtensionResourceLoaderService, _notificationService: INotificationService, _logService: ILogService, _configurationService: IConfigurationService, _progressService: IProgressService, _environmentService: IWorkbenchEnvironmentService, _instantiationService: IInstantiationService, _telemetryService: ITelemetryService); private getAsyncTokenizationEnabled; private getAsyncTokenizationVerification; private _handleGrammarsExtPoint; private _validateGrammarDefinition; startDebugMode(printFn: (str: string) => void, onStop: () => void): void; private _canCreateGrammarFactory; private _getOrCreateGrammarFactory; private _createTokenizationSupport; private _updateTheme; createTokenizer(languageId: string): Promise; private _vscodeOniguruma; private _getVSCodeOniguruma; private _loadVSCodeOnigurumaWASM; private _reportTokenizationTime; }