UNPKG

@ydb-platform/monaco-ghost

Version:

Inline completion adapter for Monaco Editor

16 lines 631 B
import * as monaco from 'monaco-editor'; import type { ICodeCompletionAPI, CodeCompletionConfig, ICodeCompletionEventHandlers } from '../types'; interface UseMonacoGhostProps { api: ICodeCompletionAPI; eventHandlers?: ICodeCompletionEventHandlers; config: CodeCompletionConfig & { language: string; }; } interface UseMonacoGhostResult { register: (editor: monaco.editor.IStandaloneCodeEditor) => void; unregister: () => void; } export declare function useMonacoGhost({ api, config, eventHandlers, }: UseMonacoGhostProps): UseMonacoGhostResult; export {}; //# sourceMappingURL=useMonacoGhost.d.ts.map