ms-types 0.1.22 → 0.1.25

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 (45) hide show
  1. package/package.json +20 -20
  2. package/types/action.d.ts +298 -298
  3. package/types/{appleocr.d.ts → appleOcr.d.ts} +102 -102
  4. package/types/config.d.ts +54 -54
  5. package/types/device.d.ts +105 -105
  6. package/types/global.d.ts +185 -181
  7. package/types/hid.d.ts +289 -289
  8. package/types/hotUpdate.d.ts +104 -104
  9. package/types/http.d.ts +300 -300
  10. package/types/ime.d.ts +99 -99
  11. package/types/index.d.ts +26 -26
  12. package/types/media.d.ts +90 -90
  13. package/types/mysql.d.ts +174 -174
  14. package/types/netCard.d.ts +77 -42
  15. package/types/node.d.ts +279 -279
  16. package/types/{paddleocr.d.ts → paddleOcr.d.ts} +73 -73
  17. package/types/pip.d.ts +51 -51
  18. package/types/system.d.ts +195 -195
  19. package/types/thread.d.ts +101 -101
  20. package/types/{tomatoocr.d.ts → tomatoOcr.d.ts} +199 -199
  21. package/types/tts.d.ts +91 -91
  22. package/types/ui.d.ts +165 -165
  23. package/types/yolo.d.ts +98 -98
  24. package/types/zh/HID/346/250/241/345/235/227.d.ts +293 -293
  25. package/types/zh/HTTP/346/250/241/345/235/227.d.ts +301 -301
  26. package/types/zh/{MySql → MySQL}/346/250/241/345/235/227.d.ts +175 -175
  27. package/types/zh/PaddleOCR/346/250/241/345/235/227.d.ts +74 -74
  28. package/types/zh/YOLO/346/250/241/345/235/227.d.ts +101 -101
  29. package/types/zh/index.d.ts +24 -24
  30. package/types/zh//345/205/250/345/261/200/346/250/241/345/235/227.d.ts +180 -179
  31. package/types/zh//345/212/250/344/275/234/346/250/241/345/235/227.d.ts +300 -300
  32. package/types/zh//345/215/241/345/257/206/346/250/241/345/235/227.d.ts +90 -55
  33. package/types/zh//345/252/222/344/275/223/346/250/241/345/235/227.d.ts +91 -91
  34. package/types/zh//345/267/245/345/205/267/346/250/241/345/235/227.d.ts +30 -30
  35. package/types/zh//346/202/254/346/265/256/347/252/227/346/250/241/345/235/227.d.ts +55 -55
  36. package/types/zh//346/226/207/345/255/227/350/275/254/350/257/255/351/237/263/346/250/241/345/235/227.d.ts +92 -92
  37. package/types/zh//347/203/255/346/233/264/346/226/260/346/250/241/345/235/227.d.ts +105 -105
  38. package/types/zh//347/263/273/347/273/237/346/250/241/345/235/227.d.ts +194 -194
  39. package/types/zh//347/272/277/347/250/213/346/250/241/345/235/227.d.ts +102 -102
  40. package/types/zh//350/212/202/347/202/271/346/250/241/345/235/227.d.ts +280 -280
  41. package/types/zh//350/213/271/346/236/234OCR.d.ts +104 -104
  42. package/types/zh//350/247/206/345/233/276/346/250/241/345/235/227.d.ts +167 -167
  43. package/types/zh//350/256/276/345/244/207/346/250/241/345/235/227.d.ts +106 -106
  44. package/types/zh//350/276/223/345/205/245/346/263/225/346/250/241/345/235/227.d.ts +100 -100
  45. package/types/zh//351/205/215/347/275/256/346/250/241/345/235/227.d.ts +56 -56
@@ -1,101 +1,101 @@
1
- /// <reference path="全局模块.d.ts" />
2
-
3
- /**
4
- * YOLO目标检测模块 包含加载模型、目标检测等功能
5
- */
6
- declare namespace $YOLO {
7
- /**
8
- * YOLO检测结果
9
- */
10
- interface Yolo检测结果 {
11
- /**
12
- * 检测框的左上角x坐标
13
- */
14
- x: 数字;
15
- /**
16
- * 检测框的左上角y坐标
17
- */
18
- y: 数字;
19
- /**
20
- * 检测框的右下角x坐标
21
- */
22
- ex: 数字;
23
- /**
24
- * 检测框的右下角y坐标
25
- */
26
- ey: 数字;
27
- /**
28
- * 检测框的中心点x坐标
29
- */
30
- centerX: 数字;
31
- /**
32
- * 检测框的中心点y坐标
33
- */
34
- centerY: 数字;
35
- /**
36
- * 检测框的宽度
37
- */
38
- width: 数字;
39
- /**
40
- * 检测框的高度
41
- */
42
- height: 数字;
43
- /**
44
- * 检测框的置信度
45
- */
46
- confidence: 数字;
47
- /**
48
- * 检测框的类别ID
49
- */
50
- classId: 数字;
51
- }
52
-
53
- /**
54
- * 加载YOLOv11模型 (兼容 yolov8 模型)
55
- * @param ncnn模型的param文件路径
56
- * @param ncnn模型的bin文件路径
57
- * @param 标签数量 模型的标签数量,可在标签集data.yaml中看到
58
- * @returns 加载成功返回模型ID字符串,失败返回null
59
- * @example
60
- * const 模型ID = $YOLO.加载YOLOv11模型("yolov11n.param", "yolov11n.bin", 80)
61
- */
62
- function 加载YOLOv11模型(
63
- ncnn模型的param文件路径: 字符串,
64
- ncnn模型的bin文件路径: 字符串,
65
- 标签数量: 数字
66
- ): 字符串 | null;
67
-
68
- /**
69
- * 目标检测
70
- * @param 模型ID
71
- * @param 图片ID 图像ID,"screen"用当前屏幕检测,可以填入图像ID或者http图片地址或文件地址
72
- * @param 目标检测输入大小 图像进入后缩放的检测大小,模型训练一般都用640,因此这里的640一般不要改
73
- * @param 置信度 置信度,默认0.4,小于这个值的会被过滤掉
74
- * @param 重叠阈值 一般是0.5不需要更改
75
- * @returns 检测结果数组
76
- * @example
77
- * const 结果数组 = $YOLO.目标检测(模型ID, "screen", 640, 0.4, 0.5)
78
- */
79
- function 目标检测(
80
- 模型ID: 字符串,
81
- 图片ID: 字符串,
82
- 目标检测输入大小?: 数字,
83
- 置信度?: 数字,
84
- 重叠阈值?: 数字
85
- ): 数组<Yolo检测结果>;
86
-
87
- /**
88
- * 释放指定模型资源
89
- * @param 模型ID
90
- * @example
91
- * $YOLO.释放模型资源(模型ID)
92
- */
93
- function 释放模型资源(模型ID: 字符串): 无返回值;
94
-
95
- /**
96
- * 释放所有模型资源
97
- * @example
98
- * $YOLO.释放所有模型资源()
99
- */
100
- function 释放所有模型资源(): 无返回值;
101
- }
1
+ /// <reference path="全局模块.d.ts" />
2
+
3
+ /**
4
+ * YOLO目标检测模块 包含加载模型、目标检测等功能
5
+ */
6
+ declare namespace $YOLO {
7
+ /**
8
+ * YOLO检测结果
9
+ */
10
+ interface Yolo检测结果 {
11
+ /**
12
+ * 检测框的左上角x坐标
13
+ */
14
+ x: 数字;
15
+ /**
16
+ * 检测框的左上角y坐标
17
+ */
18
+ y: 数字;
19
+ /**
20
+ * 检测框的右下角x坐标
21
+ */
22
+ ex: 数字;
23
+ /**
24
+ * 检测框的右下角y坐标
25
+ */
26
+ ey: 数字;
27
+ /**
28
+ * 检测框的中心点x坐标
29
+ */
30
+ centerX: 数字;
31
+ /**
32
+ * 检测框的中心点y坐标
33
+ */
34
+ centerY: 数字;
35
+ /**
36
+ * 检测框的宽度
37
+ */
38
+ width: 数字;
39
+ /**
40
+ * 检测框的高度
41
+ */
42
+ height: 数字;
43
+ /**
44
+ * 检测框的置信度
45
+ */
46
+ confidence: 数字;
47
+ /**
48
+ * 检测框的类别ID
49
+ */
50
+ classId: 数字;
51
+ }
52
+
53
+ /**
54
+ * 加载YOLOv11模型 (兼容 yolov8 模型)
55
+ * @param ncnn模型的param文件路径
56
+ * @param ncnn模型的bin文件路径
57
+ * @param 标签数量 模型的标签数量,可在标签集data.yaml中看到
58
+ * @returns 加载成功返回模型ID字符串,失败返回null
59
+ * @example
60
+ * const 模型ID = $YOLO.加载YOLOv11模型("yolov11n.param", "yolov11n.bin", 80)
61
+ */
62
+ function 加载YOLOv11模型(
63
+ ncnn模型的param文件路径: 字符串,
64
+ ncnn模型的bin文件路径: 字符串,
65
+ 标签数量: 数字
66
+ ): 字符串 | null;
67
+
68
+ /**
69
+ * 目标检测
70
+ * @param 模型ID
71
+ * @param 图片ID 图像ID,"screen"用当前屏幕检测,可以填入图像ID或者http图片地址或文件地址
72
+ * @param 目标检测输入大小 图像进入后缩放的检测大小,模型训练一般都用640,因此这里的640一般不要改
73
+ * @param 置信度 置信度,默认0.4,小于这个值的会被过滤掉
74
+ * @param 重叠阈值 一般是0.5不需要更改
75
+ * @returns 检测结果数组
76
+ * @example
77
+ * const 结果数组 = $YOLO.目标检测(模型ID, "screen", 640, 0.4, 0.5)
78
+ */
79
+ function 目标检测(
80
+ 模型ID: 字符串,
81
+ 图片ID: 字符串,
82
+ 目标检测输入大小?: 数字,
83
+ 置信度?: 数字,
84
+ 重叠阈值?: 数字
85
+ ): 数组<Yolo检测结果>;
86
+
87
+ /**
88
+ * 释放指定模型资源
89
+ * @param 模型ID
90
+ * @example
91
+ * $YOLO.释放模型资源(模型ID)
92
+ */
93
+ function 释放模型资源(模型ID: 字符串): 无返回值;
94
+
95
+ /**
96
+ * 释放所有模型资源
97
+ * @example
98
+ * $YOLO.释放所有模型资源()
99
+ */
100
+ function 释放所有模型资源(): 无返回值;
101
+ }
@@ -1,24 +1,24 @@
1
- /// <reference path="动作模块.d.ts" />
2
- /// <reference path="工具模块.d.ts" />
3
- /// <reference path="节点模块.d.ts" />
4
- /// <reference path="卡密模块.d.ts" />
5
- /// <reference path="媒体模块.d.ts" />
6
- /// <reference path="配置模块.d.ts" />
7
- /// <reference path="苹果OCR.d.ts" />
8
- /// <reference path="全局模块.d.ts" />
9
- /// <reference path="热更新模块.d.ts" />
10
- /// <reference path="日志模块.d.ts" />
11
- /// <reference path="设备模块.d.ts" />
12
- /// <reference path="视图模块.d.ts" />
13
- /// <reference path="输入法模块.d.ts" />
14
- /// <reference path="图片模块.d.ts" />
15
- /// <reference path="文件模块.d.ts" />
16
- /// <reference path="文字转语音模块.d.ts" />
17
- /// <reference path="系统模块.d.ts" />
18
- /// <reference path="线程模块.d.ts" />
19
- /// <reference path="悬浮窗模块.d.ts" />
20
- /// <reference path="HID模块.d.ts" />
21
- /// <reference path="HTTP模块.d.ts" />
22
- /// <reference path="MySQL模块.d.ts" />
23
- /// <reference path="PaddleOCR模块.d.ts" />
24
- /// <reference path="YOLO模块.d.ts" />
1
+ /// <reference path="动作模块.d.ts" />
2
+ /// <reference path="工具模块.d.ts" />
3
+ /// <reference path="节点模块.d.ts" />
4
+ /// <reference path="卡密模块.d.ts" />
5
+ /// <reference path="媒体模块.d.ts" />
6
+ /// <reference path="配置模块.d.ts" />
7
+ /// <reference path="苹果OCR.d.ts" />
8
+ /// <reference path="全局模块.d.ts" />
9
+ /// <reference path="热更新模块.d.ts" />
10
+ /// <reference path="日志模块.d.ts" />
11
+ /// <reference path="设备模块.d.ts" />
12
+ /// <reference path="视图模块.d.ts" />
13
+ /// <reference path="输入法模块.d.ts" />
14
+ /// <reference path="图片模块.d.ts" />
15
+ /// <reference path="文件模块.d.ts" />
16
+ /// <reference path="文字转语音模块.d.ts" />
17
+ /// <reference path="系统模块.d.ts" />
18
+ /// <reference path="线程模块.d.ts" />
19
+ /// <reference path="悬浮窗模块.d.ts" />
20
+ /// <reference path="HID模块.d.ts" />
21
+ /// <reference path="HTTP模块.d.ts" />
22
+ /// <reference path="MySQL模块.d.ts" />
23
+ /// <reference path="PaddleOCR模块.d.ts" />
24
+ /// <reference path="YOLO模块.d.ts" />
@@ -1,179 +1,180 @@
1
- declare type 布尔值 = boolean;
2
- declare type 字符串 = string;
3
- declare type 数字 = number;
4
- declare type 任意类型 = any;
5
- declare type 日期时间 = Date;
6
- declare type 数组<T> = Array<T>;
7
- declare type 字典<T> = Record<字符串, T>;
8
- declare type 无返回值 = void;
9
-
10
- /**
11
- * true 别名
12
- */
13
- declare const $真: 布尔值;
14
- /**
15
- * false 别名
16
- */
17
- declare const $假: 布尔值;
18
-
19
- /**
20
- * 是否是调试模式
21
- */
22
- declare const $是否调试: 布尔值;
23
- /**
24
- * 是否应该退出应用
25
- */
26
- declare const $是否退出: 布尔值;
27
- /**
28
- * 应用版本
29
- */
30
- declare const $APP应用版本: 字符串;
31
- /**
32
- * 应用构建号
33
- */
34
- declare const $APP应用构建号: 数字;
35
- /**
36
- * 应用名称
37
- */
38
- declare const $APP应用名称: 字符串;
39
- /**
40
- * 应用 bundleId
41
- */
42
- declare const $APP应用包名: 字符串;
43
- /**
44
- * 当前线程名称
45
- */
46
- declare const $线程名称: 字符串;
47
- /**
48
- * 脚本信息
49
- */
50
- declare const $脚本配置: {
51
- name: 字符串;
52
- appVersion: 字符串;
53
- appId: 字符串;
54
- update: {
55
- url: 字符串;
56
- timeout: 数字;
57
- };
58
- [key: 字符串]: 任意类型;
59
- };
60
-
61
- /**
62
- * 设置异步模式 设置为异步模式后,方法定义的返回值有 `Promise` 的 `API` 方法都会返回 Promise 异步执行
63
- * 必须写在 main 方法第一行
64
- * @param 异步模式 是否异步模式
65
- * @description 设置是否开启异步模式,默认 false
66
- * @example
67
- * $设置异步模式(true);
68
- */
69
- declare function $设置异步模式(异步模式: 布尔值): 无返回值;
70
-
71
- /**
72
- * 设置停止回调(仅主线程调用)
73
- * @param callback 停止回调
74
- * @description 脚本执行完成或异常停止时调用,exit 退出不会触发
75
- * @example
76
- * $设置停止回调(() => {
77
- * $打印信息日志("脚本执行完成");
78
- * });
79
- */
80
- declare const $设置停止回调: (回调: () => 无返回值) => 无返回值;
81
-
82
- /**
83
- * 设置异常停止回调(仅主线程调用)
84
- * @param callback 异常停止回调
85
- * @description 脚本执行异常停止时调用
86
- * @example
87
- * $设置异常停止回调(() => {
88
- * $打印错误日志("脚本执行异常");
89
- * });
90
- */
91
- declare const $设置异常停止回调: (回调: () => 无返回值) => 无返回值;
92
-
93
- /**
94
- * 重启脚本(仅主线程调用)
95
- * @param delay 延迟时间 毫秒
96
- * @description 重启脚本会延迟指定时间后再重启,不要低于 2000 毫秒
97
- * @example
98
- * $重启脚本(2000);
99
- */
100
- declare const $重启脚本: (延迟时间: 数字) => 无返回值;
101
-
102
- /**
103
- * 线程睡眠
104
- * @param ms 毫秒
105
- * @description 线程睡眠会阻塞当前线程,等待指定时间后继续执行
106
- * @example
107
- * $延时(1000);
108
- */
109
- declare const $延时: (毫秒: 数字) => 无返回值 | Promise<无返回值>;
110
-
111
- /**
112
- * 退出脚本
113
- * @param 退出所有线程 是否退出所有线程 true 退出所有 false 退出当前线程,不传默认 false
114
- * @description 退出脚本会终止所有线程的执行
115
- * @example
116
- * $退出脚本();
117
- */
118
- declare const $退出脚本: (退出所有线程?: 布尔值) => 无返回值;
119
-
120
- /**
121
- * 获取当前时间戳
122
- * @returns 时间戳
123
- * @example
124
- * const timestamp = $获取当前时间戳();
125
- */
126
- declare function $获取当前时间戳(): 数字;
127
-
128
- /**
129
- * 把 app 切换到前台 utils.takeMeToFront 的别名
130
- * @see utils.takeMeToFront
131
- * @description 把 app 切换到前台
132
- * @example
133
- * $APP切入前台();
134
- */
135
- declare function $APP切入前台(): 无返回值;
136
-
137
- /**
138
- * 打印调试日志 - 输出调试级别的日志
139
- * 用于详细的程序执行信息、变量值和状态信息、函数调用跟踪
140
- * @param 日志消息内容
141
- * @see logger.debug
142
- * @example
143
- * $打印调试日志("程序开始执行");
144
- * $打印调试日志(`当前用户: ${username}`);
145
- */
146
- declare function $打印调试日志(...日志内容: 数组<任意类型>): 无返回值;
147
-
148
- /**
149
- * 打印信息日志 - 输出信息级别的日志
150
- * 用于程序正常运行信息、重要操作的确认、状态变更通知
151
- * @param 日志消息内容
152
- * @see logger.info
153
- * @example
154
- * $打印信息日志("应用程序启动成功");
155
- * $打印信息日志("用户登录成功");
156
- */
157
- declare function $打印信息日志(...日志内容: 数组<任意类型>): 无返回值;
158
-
159
- /**
160
- * 打印警告日志 - 输出警告级别的日志
161
- * 用于潜在的问题、不推荐的操作、性能警告、兼容性问题
162
- * @param 日志消息内容
163
- * @see logger.warn
164
- * @example
165
- * $打印警告日志("电池电量低于 20%");
166
- * $打印警告日志("网络连接不稳定");
167
- */
168
- declare function $打印警告日志(...日志内容: 数组<任意类型>): 无返回值;
169
-
170
- /**
171
- * 打印错误日志 - 输出错误级别的日志
172
- * 用于程序错误和异常、操作失败、系统错误、致命问题
173
- * @param 日志消息内容
174
- * @see logger.error
175
- * @example
176
- * $打印错误日志("网络请求失败");
177
- * $打印错误日志("文件读取错误");
178
- */
179
- declare function $打印错误日志(...日志内容: 数组<任意类型>): 无返回值;
1
+ declare type 布尔值 = boolean;
2
+ declare type 字符串 = string;
3
+ declare type 数字 = number;
4
+ declare type 任意类型 = any;
5
+ declare type 日期时间 = Date;
6
+ declare type 数组<T> = Array<T>;
7
+ declare type 字典<T> = Record<字符串, T>;
8
+ declare type 无返回值 = void;
9
+
10
+ /**
11
+ * true 别名
12
+ */
13
+ declare const $真: 布尔值;
14
+ /**
15
+ * false 别名
16
+ */
17
+ declare const $假: 布尔值;
18
+
19
+ /**
20
+ * 是否是调试模式
21
+ */
22
+ declare const $是否调试: 布尔值;
23
+ /**
24
+ * 是否应该退出应用
25
+ */
26
+ declare const $是否退出: 布尔值;
27
+ /**
28
+ * 应用版本
29
+ */
30
+ declare const $APP应用版本: 字符串;
31
+ /**
32
+ * 应用构建号
33
+ */
34
+ declare const $APP应用构建号: 数字;
35
+ /**
36
+ * 应用名称
37
+ */
38
+ declare const $APP应用名称: 字符串;
39
+ /**
40
+ * 应用 bundleId
41
+ */
42
+ declare const $APP应用包名: 字符串;
43
+ /**
44
+ * 当前线程名称
45
+ */
46
+ declare const $线程名称: 字符串;
47
+ /**
48
+ * 脚本信息
49
+ */
50
+ declare const $脚本配置: {
51
+ name: 字符串;
52
+ package: 字符串;
53
+ appVersion: 字符串;
54
+ appId: 字符串;
55
+ update: {
56
+ url: 字符串;
57
+ timeout: 数字;
58
+ };
59
+ [key: 字符串]: 任意类型;
60
+ };
61
+
62
+ /**
63
+ * 设置异步模式 设置为异步模式后,方法定义的返回值有 `Promise` 的 `API` 方法都会返回 Promise 异步执行
64
+ * 必须写在 main 方法第一行
65
+ * @param 异步模式 是否异步模式
66
+ * @description 设置是否开启异步模式,默认 false
67
+ * @example
68
+ * $设置异步模式(true);
69
+ */
70
+ declare function $设置异步模式(异步模式: 布尔值): 无返回值;
71
+
72
+ /**
73
+ * 设置停止回调(仅主线程调用)
74
+ * @param callback 停止回调
75
+ * @description 脚本执行完成或异常停止时调用,exit 退出不会触发
76
+ * @example
77
+ * $设置停止回调(() => {
78
+ * $打印信息日志("脚本执行完成");
79
+ * });
80
+ */
81
+ declare const $设置停止回调: (回调: () => 无返回值) => 无返回值;
82
+
83
+ /**
84
+ * 设置异常停止回调(仅主线程调用)
85
+ * @param callback 异常停止回调
86
+ * @description 脚本执行异常停止时调用
87
+ * @example
88
+ * $设置异常停止回调(() => {
89
+ * $打印错误日志("脚本执行异常");
90
+ * });
91
+ */
92
+ declare const $设置异常停止回调: (回调: () => 无返回值) => 无返回值;
93
+
94
+ /**
95
+ * 重启脚本(仅主线程调用)
96
+ * @param delay 延迟时间 毫秒
97
+ * @description 重启脚本会延迟指定时间后再重启,不要低于 2000 毫秒
98
+ * @example
99
+ * $重启脚本(2000);
100
+ */
101
+ declare const $重启脚本: (延迟时间: 数字) => 无返回值;
102
+
103
+ /**
104
+ * 线程睡眠
105
+ * @param ms 毫秒
106
+ * @description 线程睡眠会阻塞当前线程,等待指定时间后继续执行
107
+ * @example
108
+ * $延时(1000);
109
+ */
110
+ declare const $延时: (毫秒: 数字) => 无返回值 | Promise<无返回值>;
111
+
112
+ /**
113
+ * 退出脚本
114
+ * @param 退出所有线程 是否退出所有线程 true 退出所有 false 退出当前线程,不传默认 false
115
+ * @description 退出脚本会终止所有线程的执行
116
+ * @example
117
+ * $退出脚本();
118
+ */
119
+ declare const $退出脚本: (退出所有线程?: 布尔值) => 无返回值;
120
+
121
+ /**
122
+ * 获取当前时间戳
123
+ * @returns 时间戳
124
+ * @example
125
+ * const timestamp = $获取当前时间戳();
126
+ */
127
+ declare function $获取当前时间戳(): 数字;
128
+
129
+ /**
130
+ * app 切换到前台 utils.takeMeToFront 的别名
131
+ * @see utils.takeMeToFront
132
+ * @description 把 app 切换到前台
133
+ * @example
134
+ * $APP切入前台();
135
+ */
136
+ declare function $APP切入前台(): 无返回值;
137
+
138
+ /**
139
+ * 打印调试日志 - 输出调试级别的日志
140
+ * 用于详细的程序执行信息、变量值和状态信息、函数调用跟踪
141
+ * @param 日志消息内容
142
+ * @see logger.debug
143
+ * @example
144
+ * $打印调试日志("程序开始执行");
145
+ * $打印调试日志(`当前用户: ${username}`);
146
+ */
147
+ declare function $打印调试日志(...日志内容: 数组<任意类型>): 无返回值;
148
+
149
+ /**
150
+ * 打印信息日志 - 输出信息级别的日志
151
+ * 用于程序正常运行信息、重要操作的确认、状态变更通知
152
+ * @param 日志消息内容
153
+ * @see logger.info
154
+ * @example
155
+ * $打印信息日志("应用程序启动成功");
156
+ * $打印信息日志("用户登录成功");
157
+ */
158
+ declare function $打印信息日志(...日志内容: 数组<任意类型>): 无返回值;
159
+
160
+ /**
161
+ * 打印警告日志 - 输出警告级别的日志
162
+ * 用于潜在的问题、不推荐的操作、性能警告、兼容性问题
163
+ * @param 日志消息内容
164
+ * @see logger.warn
165
+ * @example
166
+ * $打印警告日志("电池电量低于 20%");
167
+ * $打印警告日志("网络连接不稳定");
168
+ */
169
+ declare function $打印警告日志(...日志内容: 数组<任意类型>): 无返回值;
170
+
171
+ /**
172
+ * 打印错误日志 - 输出错误级别的日志
173
+ * 用于程序错误和异常、操作失败、系统错误、致命问题
174
+ * @param 日志消息内容
175
+ * @see logger.error
176
+ * @example
177
+ * $打印错误日志("网络请求失败");
178
+ * $打印错误日志("文件读取错误");
179
+ */
180
+ declare function $打印错误日志(...日志内容: 数组<任意类型>): 无返回值;