import { EditorProps } from '@monaco-editor/react'; import { KeyboardEventHandler } from 'react'; export type MonacoEditorOptions = EditorProps['options']; export type MonacoEditorType = { onKeyDown: (p: KeyboardEventHandler) => void; getValue: () => string | undefined; focus: () => void; setValue: (v: string) => void; getAction: (action: string) => { run: () => void; } | undefined; revealLine: (lineNumber: number) => void; getModel: () => { getLineCount: () => number; } | null; };