@grafana/ui
Version:
Grafana Components Library
14 lines (13 loc) • 492 B
TypeScript
import type * as monacoType from 'monaco-editor/esm/vs/editor/editor.api';
import { type CodeEditorSuggestionProvider, type Monaco } from './types';
/**
* @internal -- only exported for tests
*/
export declare function findInsertIndex(line: string): {
index: number;
prefix: string;
};
/**
* @alpha
*/
export declare function registerSuggestions(monaco: Monaco, language: string, getSuggestions: CodeEditorSuggestionProvider, modelId: string): monacoType.IDisposable | undefined;