import { CommandBase, PostCommandContext } from '../base/CommandBase';
import { Doc } from '../../view/Doc';
import { CommandPayloadMap } from '../types';
import { Wp } from '../../model/document';
type InsertPaperWidgetCommandOptions = CommandPayloadMap['insertPaperWidget'];
export declare class InsertPaperWidget extends CommandBase<'insertPaperWidget'> {
    constructor(doc: Doc, payload: InsertPaperWidgetCommandOptions);
    protected execute(): Promise<PostCommandContext>;
    checkDiagonalWrapper(wp: Wp): boolean;
    /**
     * 处理折叠状态下的文本（字段）插入
     */
    private handleCollapseText;
    /**
     * 处理选区下的文本（字段）插入
     */
    private handleSelectionText;
}
export {};
