import { CommandBase, PostCommandContext } from '../base/CommandBase';
import { Doc } from '../../view/Doc';
import { CommandPayloadMap } from '../types';
export declare class InsertImage extends CommandBase<'insertImage'> {
    constructor(doc: Doc, payload: CommandPayloadMap['insertImage']);
    protected execute(): Promise<PostCommandContext>;
    /**
     * 处理折叠状态下的图片插入
     */
    private handleCollapse;
    /**
     * 处理选区下的图片插入
     */
    private handleSelection;
    /**
     * 获取插入图片的尺寸，单位 EMU
     * @param img
     * @returns
     */
    getSize(img: File): Promise<{
        width: number;
        height: number;
    }>;
}
