/*!
 * 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/inline-popup/README.md]]
 * @packageDocumentation
 * @module plugins/inline-popup
 */
import type { IJodit } from "../../types/index";
import { Plugin } from "../../core/plugin/index";
import "./config/config";
/**
 * Plugin for show inline popup dialog
 */
export declare class inlinePopup extends Plugin {
    static requires: string[];
    private type;
    private get popup();
    private get toolbar();
    private onClick;
    /**
     * The box the popup opens beside: the target's, with room for the
     * resizer's handles when the target gets them, so it doesn't cover them
     */
    private __bound;
    /**
     * Show inline popup with some toolbar
     *
     * @param type - selection, img, a etc.
     */
    private showPopup;
    private previousTarget?;
    /**
     * Hide opened popup
     */
    private hidePopup;
    protected onOutsideClick(): void;
    /**
     * A key that moves the caret off an element closes its popup, and one
     * that moves the caret into an element with a popup (a link) opens it,
     * as clicks do
     */
    protected onKeyUp(): void;
    private __followCaret;
    /**
     * The element with a popup that holds `node`
     */
    private __elementAt;
    /**
     * Can show popup for this type
     */
    private canShowPopupForType;
    /**
     * For some elements do not show popup
     */
    private isExcludedTarget;
    /** @override **/
    protected afterInit(jodit: IJodit): void;
    /**
     * The user pressed a button inside the selection toolbar — after the
     * command fires `closeAllPopups`, the toolbar should be shown again
     * while the selection is still there. See #1238
     */
    private __reopenSelectionPopup;
    /**
     * The alignment controls fire `recalcPositionPopup` once they have moved
     * the element, and their button then fires `closeAllPopups`. The popup
     * opens again beside the element, as the selection toolbar does
     */
    private __reopenFor;
    protected onRecalcPositionPopup(): void;
    private __onDocumentMouseDown;
    private __onCloseAllPopups;
    /**
     * The selection rect comes from the editor document — in iframe mode its
     * coordinates are iframe-local, while the popup lives in the host
     * document, so the iframe offset must be added. See
     * https://github.com/xdan/jodit/issues/1058
     */
    private __selectionBound;
    private snapRange;
    private onSelectionStart;
    private __keyDownElement;
    private onSelectionEnd;
    /**
     * Selection change handler
     */
    private onSelectionChange;
    /**
     * In not collapsed selection - only one image
     */
    private isSelectedTarget;
    /**
     * Shortcut for Table module
     */
    /** @override **/
    protected beforeDestruct(jodit: IJodit): void;
    private elmsList;
    private _eventsList;
    private addListenersForElements;
    private removeListenersForElements;
    /**
     * Show the inline WYSIWYG toolbar editor.
     */
    private showInlineToolbar;
}
