/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * Released under MIT see LICENSE.txt in the project root for license information.
 * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
 */
/**
 * [[include:plugins/resizer/README.md]]
 * @packageDocumentation
 * @module plugins/resizer
 */
import type { IJodit } from "../../types/index";
import { Plugin } from "../../core/plugin/plugin";
import "./config";
/**
 * The module creates a supporting frame for resizing of the elements img and table
 */
export declare class resizer extends Plugin {
    private LOCK_KEY;
    private handle;
    private element;
    private isResizeMode;
    private isShown;
    private startX;
    private startY;
    private width;
    private height;
    private ratio;
    private rect;
    private layer;
    private sizeViewer;
    /** @override */
    protected afterInit(editor: IJodit): void;
    /**
     * Click in the editor area
     */
    protected onEditorClick(e: MouseEvent): void;
    /**
     * What a click on `node` resizes: the media in it when it's a media
     * wrapper (`jodit-media`, or one from `mediaWrappers`), or `node` itself
     */
    private __resizable;
    protected __afterInsertImage(image: HTMLImageElement): void;
    private addEventListeners;
    private onStartResizing;
    private onEndResizing;
    private pointerX;
    private pointerY;
    private onResize;
    private __keyDownRange;
    private __keyDownTable;
    private onEditorKeyDown;
    private __caretTable;
    /**
     * Hide the frame once a key has moved the caret off its element, and
     * frame a table the caret has moved into, as clicks do
     */
    protected onEditorKeyUp(): void;
    private __followCaret;
    private isAltMode;
    private onKeyDown;
    private onKeyUp;
    private onClickOutside;
    private getWorkplacePosition;
    private applySize;
    /**
     * The framed element can go with a wrapper round it, keeping its parent
     */
    private get isElementInEditor();
    private onDelete;
    private __onChangeEditor;
    /**
     * Bind an edit element to element
     * @param element - The element that you want to add a function to resize
     */
    private __bind;
    private onClickElement;
    private updateSize;
    private showSizeViewer;
    /**
     * Show resizer
     */
    private show;
    /**
     * Hide resizer
     */
    private hide;
    private hideSizeViewer;
    protected beforeDestruct(jodit: IJodit): void;
}
