import { Monaco } from "@monaco-editor/react";
import { IPosition, editor } from "monaco-editor";
export default class InitEditor {
    private _editor;
    private _monaco;
    private _decorations?;
    private _changPositionListener?;
    private _originalScript?;
    private _onActionTrigger?;
    private _onLinkOpen?;
    private _registerList;
    private _version;
    constructor(editor: editor.IStandaloneCodeEditor, monaco: Monaco, onActionTrigger?: (actionId: string) => void);
    addLinkOpenFunc(onLinkOpen: (source: string, index?: number, version?: number) => void): void;
    updateActionTrigger(onActionTrigger?: (actionId: string) => void): void;
    setModelMarkers(markers: editor.IMarkerData[]): void;
    addDiffDecorations(): void;
    removeDiffDecorations(): void;
    setValue(val: string): void;
    setPosition(position: IPosition): void;
    focus(): void;
    setOriginalScript(val: string): void;
    getEditorLayout(): {
        contentHeight: number;
        lineCount: number | undefined;
    };
    setEditorLayout(height: number, width?: number): void;
    getVersion(): number;
    private updateOptions;
    private _init;
    private _onTabSizeChange;
    private _setCursorPosition;
    private _register;
    private _setOptions;
    private _addCommands;
    private _addActions;
    openFind(): void;
    gotoLine(): void;
    onChangeCursorPosition(_callback?: (postion: IPosition) => void): void;
    dispose(): void;
}
