assistsx-js 0.1.41 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +32 -0
  2. package/dist/index.cjs +7957 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.mts +4231 -0
  5. package/dist/index.d.ts +4231 -30
  6. package/dist/index.global.js +46 -0
  7. package/dist/index.global.js.map +1 -0
  8. package/dist/index.js +7879 -30
  9. package/dist/index.js.map +1 -0
  10. package/package.json +11 -5
  11. package/src/{AssistsXAsync.ts → assistsx-async.ts} +8 -8
  12. package/src/{AssistsX.ts → assistsx.ts} +8 -8
  13. package/src/barutils/bar-utils.ts +3 -3
  14. package/src/filesystem/fileio/file-io.ts +2 -2
  15. package/src/filesystem/fileutils/file-utils.ts +2 -2
  16. package/src/filesystem/path.ts +2 -2
  17. package/src/floatingwindow/float.ts +4 -4
  18. package/src/gallery/gallery.ts +2 -2
  19. package/src/global.d.ts +6 -1
  20. package/src/imageutils/image-utils.ts +2 -2
  21. package/src/ime/ime.ts +2 -2
  22. package/src/index.ts +21 -20
  23. package/src/log/log-call-method.ts +28 -0
  24. package/src/log/log.ts +445 -0
  25. package/src/mlkit/mlkit.ts +3 -3
  26. package/src/network/http.ts +2 -2
  27. package/src/{NodeAsync.ts → node-async.ts} +5 -5
  28. package/src/{Node.ts → node.ts} +5 -5
  29. package/src/{StepAsync.ts → step-async.ts} +8 -8
  30. package/src/{Step.ts → step.ts} +7 -7
  31. package/dist/AccessibilityEventFilter.d.ts +0 -105
  32. package/dist/AccessibilityEventFilter.js +0 -89
  33. package/dist/AppInfo.d.ts +0 -45
  34. package/dist/AppInfo.js +0 -38
  35. package/dist/AssistsX.d.ts +0 -484
  36. package/dist/AssistsX.js +0 -828
  37. package/dist/AssistsXAsync.d.ts +0 -532
  38. package/dist/AssistsXAsync.js +0 -874
  39. package/dist/Bounds.d.ts +0 -48
  40. package/dist/Bounds.js +0 -68
  41. package/dist/CallMethod.d.ts +0 -69
  42. package/dist/CallMethod.js +0 -71
  43. package/dist/CallResponse.d.ts +0 -10
  44. package/dist/CallResponse.js +0 -28
  45. package/dist/DeviceInfo.d.ts +0 -69
  46. package/dist/DeviceInfo.js +0 -50
  47. package/dist/Node.d.ts +0 -334
  48. package/dist/Node.js +0 -369
  49. package/dist/NodeAsync.d.ts +0 -213
  50. package/dist/NodeAsync.js +0 -313
  51. package/dist/NodeClassValue.d.ts +0 -15
  52. package/dist/NodeClassValue.js +0 -15
  53. package/dist/Step.d.ts +0 -355
  54. package/dist/Step.js +0 -689
  55. package/dist/StepAsync.d.ts +0 -162
  56. package/dist/StepAsync.js +0 -264
  57. package/dist/StepError.d.ts +0 -35
  58. package/dist/StepError.js +0 -26
  59. package/dist/StepStateStore.d.ts +0 -14
  60. package/dist/StepStateStore.js +0 -37
  61. package/dist/Utils.d.ts +0 -3
  62. package/dist/Utils.js +0 -20
  63. package/dist/WindowFlags.d.ts +0 -75
  64. package/dist/WindowFlags.js +0 -97
  65. package/dist/barutils/BarUtilsCallMethod.d.ts +0 -24
  66. package/dist/barutils/BarUtilsCallMethod.js +0 -26
  67. package/dist/barutils/bar-utils.d.ts +0 -41
  68. package/dist/barutils/bar-utils.js +0 -205
  69. package/dist/filesystem/fileio/file-io.d.ts +0 -101
  70. package/dist/filesystem/fileio/file-io.js +0 -235
  71. package/dist/filesystem/fileutils/file-utils.d.ts +0 -242
  72. package/dist/filesystem/fileutils/file-utils.js +0 -493
  73. package/dist/filesystem/path.d.ts +0 -252
  74. package/dist/filesystem/path.js +0 -589
  75. package/dist/floatingwindow/FloatCallMethod.d.ts +0 -19
  76. package/dist/floatingwindow/FloatCallMethod.js +0 -18
  77. package/dist/floatingwindow/float.d.ts +0 -29
  78. package/dist/floatingwindow/float.js +0 -149
  79. package/dist/gallery/gallery.d.ts +0 -60
  80. package/dist/gallery/gallery.js +0 -142
  81. package/dist/imageutils/image-utils.d.ts +0 -442
  82. package/dist/imageutils/image-utils.js +0 -543
  83. package/dist/ime/ime.d.ts +0 -80
  84. package/dist/ime/ime.js +0 -141
  85. package/dist/mlkit/MlkitCallMethod.d.ts +0 -27
  86. package/dist/mlkit/MlkitCallMethod.js +0 -26
  87. package/dist/mlkit/mlkit.d.ts +0 -86
  88. package/dist/mlkit/mlkit.js +0 -169
  89. package/dist/network/http.d.ts +0 -127
  90. package/dist/network/http.js +0 -202
  91. /package/src/{AccessibilityEventFilter.ts → accessibility-event-filter.ts} +0 -0
  92. /package/src/{AppInfo.ts → app-info.ts} +0 -0
  93. /package/src/barutils/{BarUtilsCallMethod.ts → bar-utils-call-method.ts} +0 -0
  94. /package/src/{Bounds.ts → bounds.ts} +0 -0
  95. /package/src/{CallMethod.ts → call-method.ts} +0 -0
  96. /package/src/{CallResponse.ts → call-response.ts} +0 -0
  97. /package/src/{DeviceInfo.ts → device-info.ts} +0 -0
  98. /package/src/floatingwindow/{FloatCallMethod.ts → float-call-method.ts} +0 -0
  99. /package/src/mlkit/{MlkitCallMethod.ts → mlkit-call-method.ts} +0 -0
  100. /package/src/{NodeClassValue.ts → node-class-value.ts} +0 -0
  101. /package/src/{StepError.ts → step-error.ts} +0 -0
  102. /package/src/{StepStateStore.ts → step-state-store.ts} +0 -0
  103. /package/src/{Utils.ts → utils.ts} +0 -0
  104. /package/src/{WindowFlags.ts → window-flags.ts} +0 -0
@@ -1,442 +0,0 @@
1
- /**
2
- * 图片尺寸信息
3
- */
4
- export interface ImageSize {
5
- filePath: string;
6
- width: number;
7
- height: number;
8
- }
9
- /**
10
- * 图片类型信息
11
- */
12
- export interface ImageType {
13
- filePath: string;
14
- imageType: string;
15
- }
16
- /**
17
- * 图片旋转角度信息
18
- */
19
- export interface ImageRotateDegree {
20
- filePath: string;
21
- degree: number;
22
- }
23
- /**
24
- * 图片处理结果
25
- */
26
- export interface ImageProcessResult {
27
- filePath: string;
28
- }
29
- /**
30
- * 图片保存结果
31
- */
32
- export interface ImageSaveResult {
33
- success: boolean;
34
- filePath: string;
35
- }
36
- export declare class ImageUtils {
37
- /**
38
- * 执行异步调用
39
- * @param method 方法名
40
- * @param args 参数对象
41
- * @param timeout 超时时间(秒),默认30秒
42
- * @returns Promise<调用响应>
43
- */
44
- private asyncCall;
45
- /**
46
- * 获取图片尺寸
47
- * @param imagePath 图片路径
48
- * @param timeout 超时时间(秒),默认30秒
49
- * @returns Promise<图片尺寸信息>
50
- */
51
- getSize(imagePath: string, timeout?: number): Promise<ImageSize>;
52
- /**
53
- * 获取图片类型
54
- * @param imagePath 图片路径
55
- * @param timeout 超时时间(秒),默认30秒
56
- * @returns Promise<图片类型信息>
57
- */
58
- getImageType(imagePath: string, timeout?: number): Promise<ImageType>;
59
- /**
60
- * 判断是否为图片
61
- * @param fileName 文件名
62
- * @param timeout 超时时间(秒),默认30秒
63
- * @returns Promise<是否为图片>
64
- */
65
- isImage(fileName: string, timeout?: number): Promise<boolean>;
66
- /**
67
- * 获取图片旋转角度
68
- * @param imagePath 图片路径
69
- * @param timeout 超时时间(秒),默认30秒
70
- * @returns Promise<图片旋转角度信息>
71
- */
72
- getRotateDegree(imagePath: string, timeout?: number): Promise<ImageRotateDegree>;
73
- /**
74
- * 缩放图片
75
- * @param imagePath 图片路径
76
- * @param options 缩放选项
77
- * @param options.scaleWidth 缩放宽度(可选)
78
- * @param options.scaleHeight 缩放高度(可选)
79
- * @param options.savePath 保存路径(可选)
80
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
81
- * @param options.timeout 超时时间(秒),默认30秒
82
- * @returns Promise<处理后的图片路径>
83
- */
84
- scale(imagePath: string, options?: {
85
- scaleWidth?: number;
86
- scaleHeight?: number;
87
- savePath?: string;
88
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
89
- timeout?: number;
90
- }): Promise<string>;
91
- /**
92
- * 裁剪图片
93
- * @param imagePath 图片路径
94
- * @param options 裁剪选项
95
- * @param options.x 起始X坐标,默认0
96
- * @param options.y 起始Y坐标,默认0
97
- * @param options.width 裁剪宽度(可选,不提供则裁剪到图片右边界)
98
- * @param options.height 裁剪高度(可选,不提供则裁剪到图片下边界)
99
- * @param options.savePath 保存路径(可选)
100
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
101
- * @param options.timeout 超时时间(秒),默认30秒
102
- * @returns Promise<处理后的图片路径>
103
- */
104
- clip(imagePath: string, options?: {
105
- x?: number;
106
- y?: number;
107
- width?: number;
108
- height?: number;
109
- savePath?: string;
110
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
111
- timeout?: number;
112
- }): Promise<string>;
113
- /**
114
- * 倾斜图片
115
- * @param imagePath 图片路径
116
- * @param options 倾斜选项
117
- * @param options.kx X轴倾斜系数,默认0
118
- * @param options.ky Y轴倾斜系数,默认0
119
- * @param options.px X轴倾斜点(可选)
120
- * @param options.py Y轴倾斜点(可选)
121
- * @param options.savePath 保存路径(可选)
122
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
123
- * @param options.timeout 超时时间(秒),默认30秒
124
- * @returns Promise<处理后的图片路径>
125
- */
126
- skew(imagePath: string, options?: {
127
- kx?: number;
128
- ky?: number;
129
- px?: number;
130
- py?: number;
131
- savePath?: string;
132
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
133
- timeout?: number;
134
- }): Promise<string>;
135
- /**
136
- * 旋转图片
137
- * @param imagePath 图片路径
138
- * @param options 旋转选项
139
- * @param options.degree 旋转角度,默认0
140
- * @param options.px 旋转中心X坐标(可选)
141
- * @param options.py 旋转中心Y坐标(可选)
142
- * @param options.savePath 保存路径(可选)
143
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
144
- * @param options.timeout 超时时间(秒),默认30秒
145
- * @returns Promise<处理后的图片路径>
146
- */
147
- rotate(imagePath: string, options?: {
148
- degree?: number;
149
- px?: number;
150
- py?: number;
151
- savePath?: string;
152
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
153
- timeout?: number;
154
- }): Promise<string>;
155
- /**
156
- * 转为圆形图片
157
- * @param imagePath 图片路径
158
- * @param options 选项
159
- * @param options.savePath 保存路径(可选)
160
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
161
- * @param options.timeout 超时时间(秒),默认30秒
162
- * @returns Promise<处理后的图片路径>
163
- */
164
- toRound(imagePath: string, options?: {
165
- savePath?: string;
166
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
167
- timeout?: number;
168
- }): Promise<string>;
169
- /**
170
- * 转为圆角图片
171
- * @param imagePath 图片路径
172
- * @param options 选项
173
- * @param options.radius 圆角半径,默认0
174
- * @param options.savePath 保存路径(可选)
175
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
176
- * @param options.timeout 超时时间(秒),默认30秒
177
- * @returns Promise<处理后的图片路径>
178
- */
179
- toRoundCorner(imagePath: string, options?: {
180
- radius?: number;
181
- savePath?: string;
182
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
183
- timeout?: number;
184
- }): Promise<string>;
185
- /**
186
- * 添加圆角边框
187
- * @param imagePath 图片路径
188
- * @param options 选项
189
- * @param options.borderSize 边框大小,默认0
190
- * @param options.color 边框颜色,默认"#000000"
191
- * @param options.cornerRadius 圆角半径,默认0
192
- * @param options.savePath 保存路径(可选)
193
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
194
- * @param options.timeout 超时时间(秒),默认30秒
195
- * @returns Promise<处理后的图片路径>
196
- */
197
- addCornerBorder(imagePath: string, options?: {
198
- borderSize?: number;
199
- color?: string;
200
- cornerRadius?: number;
201
- savePath?: string;
202
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
203
- timeout?: number;
204
- }): Promise<string>;
205
- /**
206
- * 添加圆形边框
207
- * @param imagePath 图片路径
208
- * @param options 选项
209
- * @param options.borderSize 边框大小,默认0
210
- * @param options.color 边框颜色,默认"#000000"
211
- * @param options.savePath 保存路径(可选)
212
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
213
- * @param options.timeout 超时时间(秒),默认30秒
214
- * @returns Promise<处理后的图片路径>
215
- */
216
- addCircleBorder(imagePath: string, options?: {
217
- borderSize?: number;
218
- color?: string;
219
- savePath?: string;
220
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
221
- timeout?: number;
222
- }): Promise<string>;
223
- /**
224
- * 添加倒影
225
- * @param imagePath 图片路径
226
- * @param options 选项
227
- * @param options.reflectionHeight 倒影高度,默认0
228
- * @param options.savePath 保存路径(可选)
229
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
230
- * @param options.timeout 超时时间(秒),默认30秒
231
- * @returns Promise<处理后的图片路径>
232
- */
233
- addReflection(imagePath: string, options?: {
234
- reflectionHeight?: number;
235
- savePath?: string;
236
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
237
- timeout?: number;
238
- }): Promise<string>;
239
- /**
240
- * 添加文字水印
241
- * @param imagePath 图片路径
242
- * @param options 选项
243
- * @param options.text 水印文字,默认""
244
- * @param options.x 文字X坐标,默认0
245
- * @param options.y 文字Y坐标,默认0
246
- * @param options.color 文字颜色,默认"#000000"
247
- * @param options.size 文字大小,默认16
248
- * @param options.savePath 保存路径(可选)
249
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
250
- * @param options.timeout 超时时间(秒),默认30秒
251
- * @returns Promise<处理后的图片路径>
252
- */
253
- addTextWatermark(imagePath: string, options?: {
254
- text?: string;
255
- x?: number;
256
- y?: number;
257
- color?: string;
258
- size?: number;
259
- savePath?: string;
260
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
261
- timeout?: number;
262
- }): Promise<string>;
263
- /**
264
- * 添加图片水印
265
- * @param imagePath 图片路径
266
- * @param options 选项
267
- * @param options.watermarkPath 水印图片路径(必需)
268
- * @param options.x 水印X坐标,默认0
269
- * @param options.y 水印Y坐标,默认0
270
- * @param options.alpha 透明度,默认255
271
- * @param options.savePath 保存路径(可选)
272
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
273
- * @param options.timeout 超时时间(秒),默认30秒
274
- * @returns Promise<处理后的图片路径>
275
- */
276
- addImageWatermark(imagePath: string, options: {
277
- watermarkPath: string;
278
- x?: number;
279
- y?: number;
280
- alpha?: number;
281
- savePath?: string;
282
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
283
- timeout?: number;
284
- }): Promise<string>;
285
- /**
286
- * 转为 alpha 位图
287
- * @param imagePath 图片路径
288
- * @param options 选项
289
- * @param options.savePath 保存路径(可选)
290
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
291
- * @param options.timeout 超时时间(秒),默认30秒
292
- * @returns Promise<处理后的图片路径>
293
- */
294
- toAlpha(imagePath: string, options?: {
295
- savePath?: string;
296
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
297
- timeout?: number;
298
- }): Promise<string>;
299
- /**
300
- * 转为灰度图片
301
- * @param imagePath 图片路径
302
- * @param options 选项
303
- * @param options.savePath 保存路径(可选)
304
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
305
- * @param options.timeout 超时时间(秒),默认30秒
306
- * @returns Promise<处理后的图片路径>
307
- */
308
- toGray(imagePath: string, options?: {
309
- savePath?: string;
310
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
311
- timeout?: number;
312
- }): Promise<string>;
313
- /**
314
- * 快速模糊
315
- * @param imagePath 图片路径
316
- * @param options 选项
317
- * @param options.radius 模糊半径,默认0
318
- * @param options.scale 缩放比例,默认1
319
- * @param options.savePath 保存路径(可选)
320
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
321
- * @param options.timeout 超时时间(秒),默认30秒
322
- * @returns Promise<处理后的图片路径>
323
- */
324
- fastBlur(imagePath: string, options?: {
325
- radius?: number;
326
- scale?: number;
327
- savePath?: string;
328
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
329
- timeout?: number;
330
- }): Promise<string>;
331
- /**
332
- * RenderScript 模糊
333
- * @param imagePath 图片路径
334
- * @param options 选项
335
- * @param options.radius 模糊半径,默认0
336
- * @param options.savePath 保存路径(可选)
337
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
338
- * @param options.timeout 超时时间(秒),默认30秒
339
- * @returns Promise<处理后的图片路径>
340
- */
341
- renderScriptBlur(imagePath: string, options?: {
342
- radius?: number;
343
- savePath?: string;
344
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
345
- timeout?: number;
346
- }): Promise<string>;
347
- /**
348
- * Stack 模糊
349
- * @param imagePath 图片路径
350
- * @param options 选项
351
- * @param options.radius 模糊半径,默认0
352
- * @param options.savePath 保存路径(可选)
353
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
354
- * @param options.timeout 超时时间(秒),默认30秒
355
- * @returns Promise<处理后的图片路径>
356
- */
357
- stackBlur(imagePath: string, options?: {
358
- radius?: number;
359
- savePath?: string;
360
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
361
- timeout?: number;
362
- }): Promise<string>;
363
- /**
364
- * 按缩放压缩
365
- * @param imagePath 图片路径
366
- * @param options 选项
367
- * @param options.scaleWidth 缩放宽度(可选)
368
- * @param options.scaleHeight 缩放高度(可选)
369
- * @param options.savePath 保存路径(可选)
370
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
371
- * @param options.timeout 超时时间(秒),默认30秒
372
- * @returns Promise<压缩后的图片路径>
373
- */
374
- compressByScale(imagePath: string, options?: {
375
- scaleWidth?: number;
376
- scaleHeight?: number;
377
- savePath?: string;
378
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
379
- timeout?: number;
380
- }): Promise<string>;
381
- /**
382
- * 按质量压缩
383
- * @param imagePath 图片路径
384
- * @param options 选项
385
- * @param options.quality 压缩质量,0-100,默认100
386
- * @param options.format 图片格式,支持 "JPEG"、"PNG"、"WEBP",默认"JPEG"
387
- * @param options.savePath 保存路径(可选)
388
- * @param options.timeout 超时时间(秒),默认30秒
389
- * @returns Promise<压缩后的图片路径>
390
- */
391
- compressByQuality(imagePath: string, options?: {
392
- quality?: number;
393
- format?: "JPEG" | "PNG" | "WEBP";
394
- savePath?: string;
395
- timeout?: number;
396
- }): Promise<string>;
397
- /**
398
- * 按采样大小压缩
399
- * @param imagePath 图片路径
400
- * @param options 选项
401
- * @param options.sampleSize 采样大小,默认1
402
- * @param options.savePath 保存路径(可选)
403
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
404
- * @param options.timeout 超时时间(秒),默认30秒
405
- * @returns Promise<压缩后的图片路径>
406
- */
407
- compressBySampleSize(imagePath: string, options?: {
408
- sampleSize?: number;
409
- savePath?: string;
410
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
411
- timeout?: number;
412
- }): Promise<string>;
413
- /**
414
- * 保存图片
415
- * @param imagePath 图片路径
416
- * @param options 选项
417
- * @param options.savePath 保存路径(可选,不提供则自动生成)
418
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
419
- * @param options.timeout 超时时间(秒),默认30秒
420
- * @returns Promise<保存结果>
421
- */
422
- save(imagePath: string, options?: {
423
- savePath?: string;
424
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
425
- timeout?: number;
426
- }): Promise<ImageSaveResult>;
427
- /**
428
- * 保存图片到相册
429
- * @param imagePath 图片路径
430
- * @param options 选项
431
- * @param options.fileName 文件名(可选,不提供则自动生成)
432
- * @param options.format 图片格式,支持 "PNG"、"JPEG"、"JPG"、"WEBP",默认"PNG"
433
- * @param options.timeout 超时时间(秒),默认30秒
434
- * @returns Promise<保存结果>
435
- */
436
- save2Album(imagePath: string, options?: {
437
- fileName?: string;
438
- format?: "PNG" | "JPEG" | "JPG" | "WEBP";
439
- timeout?: number;
440
- }): Promise<ImageSaveResult>;
441
- }
442
- export declare const imageUtils: ImageUtils;