import { type Extension } from "@codemirror/state"; import { type ConfigEditorLanguage } from "./configEditorLanguage.js"; /** * Loads the grammar(s) `UiConfigEditor` needs for the given languages ahead of rendering one. * * Purely an optimization: the editor loads its grammar itself when it first renders, mounting * without highlighting for the moment that takes. Callers that know an editor is coming (and * tests that assert on a fully initialized editor synchronously) can await this instead. * * @internal */ export declare function preloadUiConfigEditorGrammars(languages?: ConfigEditorLanguage[]): Promise; /** The grammar for `language`, loading it on first use; `undefined` until it has arrived. */ export declare function useLanguageGrammar(language: ConfigEditorLanguage): Extension | undefined; //# sourceMappingURL=configEditorGrammars.d.ts.map