import { RenderText, TextCursorMoveWorker, TextCursorPosition } from "../../renderText";
import { EditTextInfo } from "../../input/EditTextInfo";
import { TextProps } from "../../graphics";
import { AppEventContext } from "../../app";
/**
 * 做文字删除时操作的worker
 */
export declare class TextDeleteInputWorker {
    cursorMoveWorker: TextCursorMoveWorker;
    private readonly richTextHelper;
    work(editTextInfo: EditTextInfo, eventCtx: AppEventContext, times?: number): void;
    computeUpdateTextProps(editTextInfo: EditTextInfo, times: number): {
        updateTextProps: Partial<TextProps>;
    };
    /**
     * 删除文字
     * @param renderText
     * @param textCursor
     * @param times
     */
    deleteText(renderText: RenderText, textCursor: TextCursorPosition, times: number): string;
    deleteTextByCursorPos(renderText: RenderText, deleteStartPos: TextCursorPosition, deleteEndPos: TextCursorPosition): string;
    /**
     * 生成删除后的富文本XML
     * @param renderText
     * @param startPos 删除起始位置
     * @param endPos 删除结束位置
     */
    private generateDeletedXML;
    /**
     * 同一段落内删除
     */
    private deleteSameParagraph;
    /**
     * 跨段落删除
     */
    private deleteCrossParagraph;
}
//# sourceMappingURL=TextDeleteInputWorker.d.ts.map