import type { TextMateGrammarSupport } from "./types"; import * as monaco from 'monaco-editor'; /** * Adds TextMate grammar support to Monaco via `vscode-oniguruma` and `vscode-textmate` * @param onigurumaWasm The `onig.wasm` file shipped together with vscode-oniguruma. */ export declare function addTextMateGrammarSupport(onigurumaWasm: ArrayBuffer): TextMateGrammarSupport; /** * Registers a TextMate grammar in moncao. * @param grammarSupport The support object in which to register the grammar. * @param languageId The ID of the language * @param loadGrammar A promise to load the grammar source code. * @param loadLanguageConfiguration A promise to load the monaco language configuration. */ export declare function registerGrammar(grammarSupport: TextMateGrammarSupport, languageId: string, loadGrammar: () => Promise, loadLanguageConfiguration: () => Promise): Promise;