import type { ICxnShapeData, IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape'; import type { ICommandService } from '@univerjs/core'; interface IOldShapeData { oldShapeData?: IShapeData; oldShapeType?: ShapeTypeEnum; } export declare function updateShapeData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, shapeData?: IShapeData): Promise; export declare function updateLineShapeData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, shapeData?: ICxnShapeData): Promise; /** * set shape text data * @param commandService * @param unitId * @param subUnitId * @param shapeId * @param textDataJson * @returns {boolean} whether the command executed successfully */ export declare function updateShapeTextData(commandService: ICommandService, unitId: string, subUnitId: string, shapeId: string, oldShapeJSON: IOldShapeData, textDataJson: unknown): Promise; export {};