import { IDisposable, editor as Editor } from 'monaco-editor';
import { LogContext } from '@arcgis/toolkit/log';
/**
 * Installs global Monaco monkey patches that are not tied to a specific editor instance.
 *
 * Currently includes a workaround for https://github.com/microsoft/monaco-editor/issues/4548
 * (Shadow DOM selection can throw during caret-range hit testing).
 */
export declare function installMonacoGlobalPatches(logContext: LogContext): IDisposable | null;
/**
 * Installs per-editor-instance Monaco patches.
 *
 * - Patches Monaco pointer handler behavior for Shadow DOM mouseleave tracking.
 * - Reapplies the patch on model changes because Monaco recreates internal View/MouseHandler.
 */
export declare function installMonacoEditorInstancePatches(editorInstance: Editor.IStandaloneCodeEditor, logContext: LogContext): IDisposable | null;
