import './ai-popup.js';
import { AIPopup } from './ai-popup.js';
export function toggleAIPopup(inlineEditors, type, targetInlineRanges) {
    const popup = new AIPopup();
    popup.inlineEditors = inlineEditors;
    popup.type = type;
    popup.targetInlineRanges = targetInlineRanges;
    const docPageEle = document.querySelectorAll('.doc-editor-container')[0];
    if (docPageEle) {
        docPageEle.appendChild(popup);
    }
    // document.body.appendChild(popup);
    return popup;
}
//# sourceMappingURL=toggle-ai-popup.js.map