import { CommandBase, PostCommandContext } from '../base/CommandBase';
import { Doc } from '../../view/Doc';
import { CommandPayloadMap } from '../types';
export declare class InsertText extends CommandBase<'insertText'> {
    constructor(doc: Doc, payload: CommandPayloadMap['insertText']);
    protected execute(): Promise<PostCommandContext>;
    /**
     * 处理折叠状态下的文本插入
     */
    private handleCollapse;
    /**
     * 处理选区下的文本插入
     */
    private handleSelection;
}
