import { IModeService } from '@workbench-stack/core'; import { Observable } from 'rxjs'; import { IMode } from '@vscode-alt/monaco-editor/esm/vs/editor/common/modes'; import { IModeService as IEditorModeService } from '@vscode-alt/monaco-editor/esm/vs/editor/common/services/modeService'; import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri'; import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event'; export declare class ModeService implements IModeService { onDidCreateMode: Observable; private static _modeService; constructor(); onLanguagesMaybeChanged: Event; static getModeService(): IEditorModeService; getExtensions(alias: string): string[]; getFilenames(alias: string): string[]; getModeId(commaSeparatedMimetypesOrCommaSeparatedIds: string): string; getMimeForMode(modeId: string): string; getLanguageName(modeId: string): string; getModeIdForLanguageName(alias: string): string; getModeIdByFilepathOrFirstLine(resource: URI | null, firstLine?: string): string; getLanguageIdentifier(modeId: any): import("@vscode-alt/monaco-editor/esm/vs/editor/common/modes").LanguageIdentifier; create(commaSeparatedMimetypesOrCommaSeparatedIds: string): import("@vscode-alt/monaco-editor/esm/vs/editor/common/services/modeService").ILanguageSelection; createByLanguageName(languageName: string): import("@vscode-alt/monaco-editor/esm/vs/editor/common/services/modeService").ILanguageSelection; createByFilepathOrFirstLine(resource: URI | null, firstLine?: string): import("@vscode-alt/monaco-editor/esm/vs/editor/common/services/modeService").ILanguageSelection; }