import * as $dara from '@darabonba/typescript'; export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model { /** * @remarks * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box. * * @example * 0 */ degree?: number; /** * @remarks * The height. * * @example * 0 */ height?: number; /** * @remarks * The left coordinate. * * @example * 0 */ left?: number; /** * @remarks * The top coordinate. * * @example * 0 */ top?: number; /** * @remarks * The width. * * @example * 0 */ width?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model { /** * @remarks * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box. * * @example * 0 */ degree?: number; /** * @remarks * The height. * * @example * 54 */ height?: number; /** * @remarks * The left coordinate. * * @example * 43 */ left?: number; /** * @remarks * The top coordinate. * * @example * 83 */ top?: number; /** * @remarks * The width. * * @example * 418 */ width?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model { /** * @remarks * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box. * * @example * 0 */ degree?: number; /** * @remarks * The height. * * @example * 30 */ height?: number; /** * @remarks * The left coordinate. * * @example * 8 */ left?: number; /** * @remarks * The top coordinate. * * @example * 95 */ top?: number; /** * @remarks * The width. * * @example * 488 */ width?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model { /** * @remarks * The text color after translation. * * @example * #515151 */ color?: string; /** * @remarks * The font size of the translated text. * * @example * 29 */ fontsize?: number; /** * @remarks * The horizontal layout mode. Valid values: center, left, right. * * @example * center */ horizontalLayout?: string; /** * @remarks * The coordinates of the image repair area. */ imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect; /** * @remarks * The target language code for translation. * * @example * en */ language?: string; /** * @remarks * The number of lines in the text box. * * @example * 1 */ lineCount?: number; /** * @remarks * The coordinates of the text box area. */ textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect; /** * @remarks * Indicates whether the TextItem is valid. The TextItem is invalid if this value does not exist or is set to false. * * @example * true */ valid?: boolean; /** * @remarks * The translated text content. * * @example * Adorable Design · Crisp Bell Sound */ value?: string; /** * @remarks * The vertical layout mode. Valid values: center, top, and down. * * @example * center */ verticalLayout?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extends $dara.Model { /** * @remarks * The text color, such as #ffffff. * * @example * #515151 */ color?: string; /** * @remarks * The original text before translation. * * @example * 萌趣造型·清脆响铃 */ content?: string; /** * @remarks * The font size. * * @example * 32 */ fontsize?: number; /** * @remarks * The horizontal layout mode. Valid values: center, left, right. * * @example * left */ horizontalLayout?: string; /** * @remarks * The number of lines in the text box. * * @example * 1 */ lineCount?: number; /** * @remarks * The list of translated texts. Each element corresponds to the translation result for a target language. */ texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[]; /** * @remarks * The vertical layout mode. Valid values: center, top, and down. * * @example * center */ verticalLayout?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.Model { /** * @remarks * The list of font types. */ font?: string[]; /** * @remarks * The coordinate information of the product bounding box area. */ goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects; /** * @remarks * The list of target languages for translation. */ languages?: string[]; /** * @remarks * The URL of the image after all text has been inpainted. * * @example * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png */ repairedUrl?: string; /** * @remarks * The collection of global IDs for the translated images. */ resultImageIds?: string[]; /** * @remarks * The list of text boxes, which contains information about all recognized text areas. */ textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[]; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara.Model { /** * @remarks * The URL of the translated image file. * * @example * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg */ fileUrl?: string; /** * @remarks * The target language for translation. * * @example * en */ language?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model { /** * @remarks * The editor information, which contains recognized information such as text areas, product areas, and fonts. */ editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo; /** * @remarks * The collection of translation results. */ resultList?: ImageTranslationProResponseBodyDataGenFilesResultList[]; /** * @remarks * The URL of the original image. * * @example * https://img.alicdn.com/imgextra/i3/O1CN01HTDhDi28Fd85ZYs7H_!!6000000007903-0-tps-800-800.jpg */ srcImage?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyDataResultList extends $dara.Model { /** * @remarks * The URL of the translated result image. * * @example * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg */ fileUrl?: string; /** * @remarks * The target language for image translation. * * @example * en */ language?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBodyData extends $dara.Model { /** * @remarks * The editor protocol, which contains translation result files and editing information. */ genFiles?: ImageTranslationProResponseBodyDataGenFiles[]; /** * @remarks * The list of image translation results. */ resultList?: ImageTranslationProResponseBodyDataResultList[]; /** * @remarks * The asynchronous task ID. This parameter is not returned for synchronous calls. * * @example * abc123-task-id */ taskId?: string; /** * @remarks * The usage information, such as the number of processed images. */ usageMap?: { [key: string]: number; }; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } export declare class ImageTranslationProResponseBody extends $dara.Model { /** * @remarks * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information. * * @example * 200 */ code?: string; /** * @remarks * The translation result data. ResultList contains the URLs of the translation results. GenFiles contains EditInfo, which includes the recognized text information. */ data?: ImageTranslationProResponseBodyData; /** * @remarks * The error message. "Success" is returned if the call is successful. A specific error message is returned if the call fails, such as "The content contains sensitive data. Try other input." * * @example * Success */ message?: string; /** * @remarks * The request ID, which uniquely identifies the request. * * @example * 61785C32-80C2-19A3-9E55-2C3702C84B40 */ requestId?: string; /** * @remarks * Indicates whether the call is successful. Valid values: * - true: The call is successful. * - false: The call failed. * * @example * true */ success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }