import { CorrectIcon } from '../../../../../icons/ai.js';
export const textDealConfig = [
    {
        name: 'Replace selection',
        icon: CorrectIcon,
        hotkey: null,
        action: ({ inlineEditors, targetInlineRanges, content }) => {
            inlineEditors.forEach((inlineEditor, index) => {
                if (index === 0) {
                    inlineEditor.insertText(targetInlineRanges[index], content);
                }
                else {
                    inlineEditor.deleteText(targetInlineRanges[index]);
                }
            });
            // inlineEditor.setInlineRange({
            // 	index: targetInlineRange.index,
            // 	length: content.length
            // });
        },
    },
];
//# sourceMappingURL=consts.js.map