/** Languages a host adds to the ones the editor carries. */ export interface EditorLanguages { /** * Imports Monaco's registration for the languages, such as * `() => import('monaco-editor/languages/definitions/ruby/register')`. It runs when the next * editor mounts, so Monaco still loads only once an editor needs it. */ load: () => Promise; /** * A worker for each language service the registration brings, by the label Monaco asks for, * such as `typescript` and `javascript`. Basic languages color text on the page and need none. */ workers?: Record Worker>; } /** * Adds language services with their workers, such as TypeScript's, or languages of the host's * own, to the coloring the editor has for every Monaco language. Call it once at startup, before * the first editor mounts; an editor that mounts while they load waits for them. */ export declare function addEditorLanguages({ load, workers: added }: EditorLanguages): void; /** The languages still loading, starting any added since, or undefined once all have. */ export declare function editorLanguagesLoading(): Promise | undefined; /** The host's worker for a Monaco worker label, if it added one. */ export declare function hostEditorWorker(label: string): (() => Worker) | undefined;