@xiacg/exia-core 1.0.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.
@@ -0,0 +1,693 @@
1
+ import { Component } from 'cc';
2
+
3
+ /**
4
+ * 启用或禁用调试模式。
5
+ * @param enable - 如果为 true,则启用调试模式;如果为 false,则禁用调试模式。不设置默认不开启
6
+ */
7
+ declare function enableDebugMode(enable: boolean): void;
8
+
9
+ /**
10
+ * @Description: 适配用的类
11
+ */
12
+ declare abstract class Adapter {
13
+ /** 适配器实例 */
14
+ static instance: Adapter;
15
+ /**
16
+ * 添加屏幕尺寸发生变化的监听
17
+ * @param listener 监听器
18
+ */
19
+ addResizeListener(listener: (...args: any) => void): void;
20
+ /**
21
+ * 移除屏幕尺寸发生变化的监听
22
+ * @param listener 监听器
23
+ */
24
+ removeResizeListener(listener: (...args: any) => void): void;
25
+ }
26
+
27
+ /**
28
+ * @Description:cocos游戏入口 定义了游戏启动时的基本配置和初始化流程。
29
+ */
30
+
31
+ declare abstract class CocosEntry extends Component {
32
+ fps: number;
33
+ enableDebug: boolean;
34
+ /**
35
+ * 虚函数,子类需要实现
36
+ * 自定义库初始化完成后调用
37
+ */
38
+ abstract onInit(): void;
39
+ /**
40
+ * 时间相关
41
+ */
42
+ private initTime;
43
+ }
44
+
45
+ /**
46
+ * @Description: cocos UI模块
47
+ */
48
+
49
+ declare abstract class Module extends Component {
50
+ /**
51
+ * 模块名称
52
+ * @type {string}
53
+ */
54
+ readonly moduleName: string;
55
+ /**
56
+ * 虚函数,子类需要实现
57
+ * 模块初始化完成后调用的函数
58
+ * @abstract
59
+ */
60
+ protected abstract onInit(): void;
61
+ }
62
+
63
+ /**
64
+ * @Description: 平台相关
65
+ */
66
+ declare enum PlatformType {
67
+ /** 安卓平台 */
68
+ Android = 1,
69
+ /** 苹果IOS平台 */
70
+ IOS = 2,
71
+ /** 华为鸿蒙平台 */
72
+ HarmonyOS = 3,
73
+ /** 微信小游戏 */
74
+ WX = 4,
75
+ /** 其他都为Browser */
76
+ Browser = 1001
77
+ }
78
+ declare class Platform {
79
+ /**
80
+ * 是否为原生平台
81
+ * @type {boolean}
82
+ */
83
+ static isNative: boolean;
84
+ /**
85
+ * 是否为移动平台
86
+ * @type {boolean}
87
+ */
88
+ static isMobile: boolean;
89
+ /**
90
+ * 是否为原生移动平台
91
+ * @type {boolean}
92
+ */
93
+ static isNativeMobile: boolean;
94
+ /**
95
+ * 是否为安卓平台
96
+ * @type {boolean}
97
+ */
98
+ static isAndroid: boolean;
99
+ /**
100
+ * 是否为IOS平台
101
+ * @type {boolean}
102
+ */
103
+ static isIOS: boolean;
104
+ /**
105
+ * 是否为HarmonyOS平台
106
+ * @type {boolean}
107
+ */
108
+ static isHarmonyOS: boolean;
109
+ /**
110
+ * 是否为微信小游戏
111
+ * @type {boolean}
112
+ */
113
+ static isWX: boolean;
114
+ /**
115
+ * 是否为浏览器
116
+ * @type {boolean}
117
+ */
118
+ static isBrowser: boolean;
119
+ /**
120
+ * 平台类型
121
+ * @type {PlatformType}
122
+ */
123
+ static platform: PlatformType;
124
+ /**
125
+ * 设备ID
126
+ * @type {string}
127
+ */
128
+ static deviceId: string;
129
+ }
130
+
131
+ /**
132
+ * @Description: 屏幕尺寸信息接口
133
+ */
134
+ declare class Screen {
135
+ /** 屏幕宽度 */
136
+ static ScreenWidth: number;
137
+ /** 屏幕高度 */
138
+ static ScreenHeight: number;
139
+ /** 设计分辨率宽 */
140
+ static DesignWidth: number;
141
+ /** 设计分辨率高 */
142
+ static DesignHeight: number;
143
+ /** 安全区外一侧的高度 或 宽度 */
144
+ static SafeAreaHeight: number;
145
+ /** 安全区的宽度 */
146
+ static SafeWidth: number;
147
+ /** 安全区的高度 */
148
+ static SafeHeight: number;
149
+ }
150
+
151
+ /**
152
+ * @Description: 二进制工具类 - 使用 JavaScript 标准库实现
153
+ */
154
+ declare class Binary {
155
+ /**
156
+ * 将对象转换为二进制数据
157
+ */
158
+ static toBinary(obj: any): Uint8Array;
159
+ /**
160
+ * 将二进制数据转换JSON数据
161
+ * @param binary 二进制数据
162
+ * @returns
163
+ */
164
+ static toJson(binary: any): any;
165
+ /**
166
+ * 检查数据是否为二进制格式
167
+ * @param data 要检查的数据
168
+ * @returns 是否为二进制格式
169
+ */
170
+ static isBinaryFormat(data: Uint8Array): boolean;
171
+ }
172
+
173
+ declare function log(...args: any[]): void;
174
+ /**
175
+ * 开启debug模式后 输出调试信息
176
+ * @param args
177
+ */
178
+ declare function debug(...args: any[]): void;
179
+ /**
180
+ * 信息性消息 某些浏览器中会带有小图标,但颜色通常与 log 相同
181
+ * @param args
182
+ */
183
+ declare function info(...args: any[]): void;
184
+ /**
185
+ * 警告信息 黄色背景,通常带有警告图标
186
+ * @param args
187
+ */
188
+ declare function warn(...args: any[]): void;
189
+ /**
190
+ * 错误消息 红色背景,通常带有错误图标
191
+ * @param args
192
+ */
193
+ declare function error(...args: any[]): void;
194
+
195
+ /**
196
+ * 对字符串执行md5处理
197
+ *
198
+ * @export
199
+ * @param {string} message 要处理的字符串
200
+ * @returns {string} md5
201
+ */
202
+ declare function md5(message: string): string;
203
+
204
+ declare class Time {
205
+ /** 获取游戏系统启动时间戳 */
206
+ static get osBootTime(): number;
207
+ /** 获取主动设置的网络时间 单位ms */
208
+ static get netTime(): number;
209
+ /** 获取本地时间与网路时间的偏移量 单位ms */
210
+ static get netTimeDiff(): number;
211
+ /** 获取系统运行时间 */
212
+ static get runTime(): number;
213
+ /**
214
+ * 设置网络时间, 单位ms
215
+ * @param netTime 网络时间
216
+ */
217
+ static setNetTime(netTime: number): void;
218
+ /**
219
+ * 获取当前时间 单位ms
220
+ */
221
+ static now(): number;
222
+ /**
223
+ * 将毫秒转换为秒
224
+ * @param ms 毫秒
225
+ */
226
+ static msTos(ms: number): number;
227
+ /**
228
+ * 将秒转换为毫秒
229
+ */
230
+ static sToMs(s: number): number;
231
+ /**
232
+ * 获取年份
233
+ * @param timestamp 时间戳 (ms)
234
+ * @returns 年份
235
+ */
236
+ static getYear(timestamp?: number): number;
237
+ /**
238
+ * 获取月份
239
+ * @param timestamp 时间戳 (ms)
240
+ * @returns 月份
241
+ */
242
+ static getMonth(timestamp?: number): number;
243
+ /**
244
+ * 获取日期
245
+ * @param timestamp 时间戳 (ms)
246
+ * @returns 日期
247
+ */
248
+ static getDay(timestamp?: number): number;
249
+ /**
250
+ * 获取小时
251
+ * @param timestamp 时间戳 (ms)
252
+ * @returns 小时
253
+ */
254
+ static getHour(timestamp?: number): number;
255
+ /**
256
+ * 获取分钟
257
+ * @param timestamp 时间戳 (ms)
258
+ * @returns 分钟
259
+ */
260
+ static getMinute(timestamp?: number): number;
261
+ /**
262
+ * 获取秒
263
+ * @param timestamp 时间戳 (ms)
264
+ * @returns 秒
265
+ */
266
+ static getSecond(timestamp?: number): number;
267
+ /**
268
+ * 获取当天开始时间
269
+ * @param timestamp 时间戳 (ms)
270
+ * @returns 时间戳 (ms)
271
+ */
272
+ static getDayStartTime(timestamp?: number): number;
273
+ /**
274
+ * 获取当天的结束时间
275
+ * @param timestamp 时间戳 (ms)
276
+ * @returns 时间戳 (ms)
277
+ */
278
+ static getDayEndTime(timestamp?: number): number;
279
+ /**
280
+ * 获取传入时间是周几
281
+ * @param {number} [time] (ms)
282
+ * @returns {number}
283
+ */
284
+ static getWeekDay(time?: number): number;
285
+ /**
286
+ * 获取当前周的开始时间
287
+ * @param timestamp 时间戳 (ms)
288
+ * @returns 时间戳 (ms)
289
+ */
290
+ static getWeekStartTime(timestamp?: number): number;
291
+ /**
292
+ * @param timestamp 时间戳 (ms)
293
+ * @returns 时间戳 (ms)
294
+ */
295
+ static getWeekEndTime(timestamp?: number): number;
296
+ /**
297
+ * 获取当前月开始时间
298
+ * @param timestamp 时间戳 (ms)
299
+ * @returns 时间戳 (ms)
300
+ */
301
+ static getMonthStartTime(timestamp?: number): number;
302
+ /**
303
+ * 获取当前月结束时间
304
+ * @param timestamp 时间戳 (ms)
305
+ * @returns 时间戳 (ms)
306
+ */
307
+ static getMonthEndTime(timestamp?: number): number;
308
+ /**
309
+ * 获取当前年份开始时间
310
+ * @param timestamp 时间戳 (ms)
311
+ * @returns 时间戳 (ms)
312
+ */
313
+ static getYearStartTime(timestamp?: number): number;
314
+ /**
315
+ * 获取当前年份结束时间
316
+ * @param timestamp 时间戳 (ms)
317
+ * @returns 时间戳 (ms)
318
+ */
319
+ static getYearEndTime(timestamp?: number): number;
320
+ /**
321
+ * 获取当前月的天数
322
+ * @param timestamp 时间戳 (ms)
323
+ * @returns 天数
324
+ */
325
+ static getMonthDays(timestamp?: number): number;
326
+ /**
327
+ * 是否是同一天
328
+ * @param timestamp1 时间戳1 (ms)
329
+ * @param now 时间戳2 (ms) 如果不传,则和当前时间比较
330
+ * @returns 是否是同一天
331
+ */
332
+ static isSameDay(timestamp1: number, now?: number): boolean;
333
+ /**
334
+ * 是否是同一周
335
+ * @param timestamp1 时间戳1 (ms)
336
+ * @param now 时间戳2 (ms) 如果不传,则和当前时间比较
337
+ * @returns 是否是同一周
338
+ */
339
+ static isSameWeek(timestamp1: number, now?: number): boolean;
340
+ /**
341
+ * 是否是同一月
342
+ * @param timestamp1 时间戳1 (ms)
343
+ * @param now 时间戳2 (ms) 如果不传,则和当前时间比较
344
+ * @returns 是否是同一月
345
+ */
346
+ static isSameMonth(timestamp1: number, now?: number): boolean;
347
+ /**
348
+ * 是否是同一年
349
+ * @param timestamp1 时间戳1 (ms)
350
+ * @param now 时间戳2 (ms) 如果不传,则和当前时间比较
351
+ * @returns 是否是同一年
352
+ */
353
+ static isSameYear(timestamp1: number, now?: number): boolean;
354
+ /**
355
+ * 通用时间格式化方法
356
+ * @param timestamp 时间戳 (ms)
357
+ * @param pattern 格式化模板
358
+ *
359
+ * 支持的占位符(大写补零,小写不补零):
360
+ * - YYYY: 四位年份 (2025) | YY: 两位年份 (25)
361
+ * - MM: 两位月份 (01-12) | M: 月份 (1-12)
362
+ * - DD: 两位日期 (01-31) | D: 日期 (1-31)
363
+ * - hh: 两位小时 (00-23) | h: 小时 (0-23)
364
+ * - mm: 两位分钟 (00-59) | m: 分钟 (0-59)
365
+ * - ss: 两位秒 (00-59) | s: 秒 (0-59)
366
+ *
367
+ * @example
368
+ * Time.format(timestamp, 'YYYY-MM-DD hh:mm:ss') // "2025-01-05 14:30:45"
369
+ * Time.format(timestamp, 'YYYY年MM月DD日 hh:mm') // "2025年01月05日 14:30"
370
+ * Time.format(timestamp, 'M月D日 h时m分') // "1月5日 14时30分"
371
+ */
372
+ static format(timestamp: number, pattern: string): string;
373
+ /**
374
+ * 格式化时间 格式: xxxx-xx-xx hh:mm:ss
375
+ * @param timestamp 时间戳 (ms)
376
+ */
377
+ static formatTime(timestamp: number): string;
378
+ /**
379
+ * 格式化时间 格式: xxxx年xx月xx日 hh:mm:ss
380
+ * @param timestamp 时间戳 (ms)
381
+ */
382
+ static formatTimeChinese(timestamp: number): string;
383
+ /**
384
+ * 通用时长格式化方法
385
+ * @param seconds 时长(秒)
386
+ * @param pattern 格式化模板
387
+ * @param options 格式化选项
388
+ *
389
+ * 支持的占位符(大写补零,小写不补零):
390
+ * - DD/D: 天数
391
+ * - HH/H: 总小时数(可超过24)
392
+ * - hh/h: 小时数(0-23范围)
393
+ * - MM/M: 总分钟数(可超过60)
394
+ * - mm/m: 分钟数(0-59范围)
395
+ * - ss/s: 秒数(0-59范围)
396
+ *
397
+ * options.autoHide: 自动隐藏为0的高位单位(默认false)
398
+ *
399
+ * @example
400
+ * Time.formatDuration(3661, 'HH:mm:ss') // "01:01:01"
401
+ * Time.formatDuration(3661, 'MM:ss') // "61:01"
402
+ * Time.formatDuration(3661, 'H小时m分s秒') // "1小时1分1秒"
403
+ * Time.formatDuration(90061, 'DD天hh:mm:ss') // "1天01:01:01"
404
+ * Time.formatDuration(125, 'HH:mm:ss', { autoHide: true }) // "02:05"
405
+ * Time.formatDuration(3661, 'DD天HH时mm分ss秒', { autoHide: true }) // "1时1分1秒"
406
+ */
407
+ static formatDuration(seconds: number, pattern: string, options?: {
408
+ autoHide?: boolean;
409
+ }): string;
410
+ /**
411
+ * 智能格式化时长 - 自动隐藏为0的高位单位
412
+ * @param time 时间 (s)
413
+ * @param pattern 格式化模板,默认 'D天h小时m分s秒'
414
+ *
415
+ * @example
416
+ * Time.formatSmart(86461) // "1天1小时1分1秒"
417
+ * Time.formatSmart(3661) // "1小时1分1秒"
418
+ * Time.formatSmart(61) // "1分1秒"
419
+ * Time.formatSmart(1) // "1秒"
420
+ */
421
+ static formatSmart(time: number, pattern?: string): string;
422
+ /**
423
+ * 智能格式化时长(简化版) - 只显示最大的两个单位,较小单位向上取整
424
+ * @param time 时间 (s)
425
+ * @param pattern 格式化模板,默认 'D天h小时|h小时m分|m分s秒',用 | 分隔不同级别
426
+ *
427
+ * @example
428
+ * Time.formatSmartSimple(90061) // "1天2小时" (1.04小时向上取整为2)
429
+ * Time.formatSmartSimple(3661) // "1小时2分" (1.02分钟向上取整为2)
430
+ * Time.formatSmartSimple(61) // "1分2秒" (1.02秒向上取整为2)
431
+ * Time.formatSmartSimple(1) // "1秒"
432
+ * Time.formatSmartSimple(90061, 'D天h时|h时m分|m分s秒') // "1天2时"
433
+ */
434
+ static formatSmartSimple(time: number, pattern?: string): string;
435
+ }
436
+
437
+ declare class Utils {
438
+ /**
439
+ * 版本号比较
440
+ * @param version1 本地版本号
441
+ * @param version2 远程版本号
442
+ * 如果返回值大于0,则version1大于version2
443
+ * 如果返回值等于0,则version1等于version2
444
+ * 如果返回值小于0,则version1小于version2
445
+ */
446
+ static compareVersion(version1: string, version2: string): number;
447
+ /**
448
+ * 判断传入的字符串是否是json格式的字符串
449
+ */
450
+ static isJsonString(str: string): boolean;
451
+ /**
452
+ * 获取url参数
453
+ * @param url
454
+ */
455
+ static getUrlParam(url: string): {
456
+ url: string;
457
+ params: {
458
+ [key: string]: string;
459
+ };
460
+ };
461
+ /**
462
+ * 给url添加参数
463
+ * @param url
464
+ * @returns 新的url
465
+ */
466
+ static addUrlParam(url: string, key: string, value: string): string;
467
+ }
468
+
469
+ /**
470
+ * @Description: 通用的 Promise 结果
471
+ */
472
+ interface IPromiseResult {
473
+ /** 0:成功 其他:失败 */
474
+ code: number;
475
+ /** 失败信息 */
476
+ message: string;
477
+ }
478
+ interface ICheckUpdatePromiseResult extends IPromiseResult {
479
+ /** 需要更新的资源大小 (KB) */
480
+ size?: number;
481
+ }
482
+
483
+ /**
484
+ * @Description: 全局定时器管理类
485
+ */
486
+ declare class GlobalTimer {
487
+ /**
488
+ * 启动一个定时器,执行指定的回调函数。
489
+ * @param callback - 要定时执行的回调函数。
490
+ * @param interval - 定时器的时间间隔(秒)。
491
+ * @param loop - [loop=0] 重复次数:0:回调一次,1~n:回调n次,-1:无限重复
492
+ * @returns 返回定时器的ID。
493
+ */
494
+ static startTimer(callback: () => void, interval: number, loop?: number): number;
495
+ /**
496
+ * 停止指定ID的计时器。
497
+ * @param timerId - 要停止的计时器的唯一标识符。
498
+ */
499
+ static stopTimer(timerId: number): void;
500
+ /**
501
+ * 暂停指定ID的计时器。
502
+ * @param timerId - 要暂停的计时器的唯一标识符。
503
+ */
504
+ static pauseTimer(timerId: number): void;
505
+ /**
506
+ * 恢复指定ID的计时器。
507
+ * @param timerId - 要恢复的计时器的唯一标识符。
508
+ */
509
+ static resumeTimer(timerId: number): void;
510
+ /**
511
+ * 清除所有定时器。
512
+ */
513
+ static clearAllTimer(): void;
514
+ }
515
+
516
+ /**
517
+ * @Description: 内部使用的全局定时器
518
+ */
519
+ declare class InnerTimer {
520
+ private static _timer;
521
+ /**
522
+ * 初始化全局定时器,设置定时器间隔为16毫秒。
523
+ * 此方法用于启动一个定时器实例,以便在整个应用程序中跟踪时间相关的操作。
524
+ */
525
+ static initTimer(): void;
526
+ /**
527
+ * 启动一个定时器,执行指定的回调函数。
528
+ * @param callback - 要定时执行的回调函数。
529
+ * @param interval - 定时器的时间间隔(秒)。
530
+ * @param loop - [loop=0] 重复次数:0:回调一次,1~n:回调n次,-1:无限重复
531
+ * @returns 返回定时器的ID。
532
+ */
533
+ private static get Timer();
534
+ static startTimer(callback: () => void, interval: number, loop?: number): number;
535
+ /**
536
+ * 停止指定ID的计时器。
537
+ * @param timerId - 要停止的计时器的唯一标识符。
538
+ */
539
+ static stopTimer(timerId: number): void;
540
+ static update(dt: number): void;
541
+ }
542
+
543
+ /**
544
+ * @Description: 二叉堆(默认最小堆) 支持最大堆和最小堆
545
+ */
546
+ declare abstract class HeapNode {
547
+ index: number;
548
+ abstract lessThan(other: HeapNode): boolean;
549
+ }
550
+ declare class BinaryHeap<T extends HeapNode> {
551
+ constructor(capacity: number);
552
+ /**
553
+ * 清空
554
+ */
555
+ clear(): void;
556
+ /**
557
+ * 获取节点
558
+ * @param index 节点索引
559
+ */
560
+ get(index: number): T;
561
+ /**
562
+ * 获取顶部节点
563
+ */
564
+ top(): T;
565
+ /**
566
+ * 是否包含节点
567
+ * @param node 节点
568
+ */
569
+ contains(node: T): boolean;
570
+ /**
571
+ * Push节点
572
+ * @param node 节点
573
+ */
574
+ push(node: T): void;
575
+ /**
576
+ * Pop节点
577
+ * @returns
578
+ */
579
+ pop(): T;
580
+ /**
581
+ * 移除节点
582
+ * @param node 要移除的节点
583
+ */
584
+ remove(node: T): void;
585
+ /**
586
+ * 更新节点
587
+ * @param node 要更新的节点
588
+ */
589
+ update(node: T): boolean;
590
+ get count(): number;
591
+ get empty(): boolean;
592
+ }
593
+
594
+ /** 单链表结结构节点 */
595
+ declare class LinkedNode<T> {
596
+ element: T;
597
+ next: LinkedNode<T>;
598
+ constructor(element: T);
599
+ }
600
+ /** 双向链表结结构节点 */
601
+ declare class DoublyNode<T> extends LinkedNode<T> {
602
+ prev: DoublyNode<T>;
603
+ next: DoublyNode<T>;
604
+ constructor(element: T);
605
+ }
606
+ /** 单向链表 */
607
+ declare class LinkedList<T> {
608
+ /**
609
+ * create
610
+ * @param equalsFn 比较是否相等(支持自定义)
611
+ */
612
+ constructor(equalsFn?: (a: T, b: T) => boolean);
613
+ /** 向链表尾部添加元素 */
614
+ push(element: T): void;
615
+ /**
616
+ * 在链表的指定位置插入一个元素。
617
+ * @param element 要插入的元素。
618
+ * @param index 插入位置的索引,从0开始计数。
619
+ * @returns 如果插入成功返回true,否则返回false。
620
+ */
621
+ insert(element: T, index: number): boolean;
622
+ /**
623
+ * 获取链表中指定位置的元素,如果不存在返回 underfined
624
+ * @param index
625
+ */
626
+ getElementAt(index: number): LinkedNode<T>;
627
+ /**
628
+ * 从链表中移除一个元素
629
+ * @param element
630
+ */
631
+ remove(element: T): T;
632
+ /**
633
+ * 从链表的特定位置移除一个元素
634
+ * @param index
635
+ */
636
+ removeAt(index: number): T;
637
+ /**
638
+ * 返回元素在链表中的索引,如果没有则返回-1
639
+ * @param element
640
+ */
641
+ indexOf(element: T): number;
642
+ clear(): void;
643
+ getHead(): LinkedNode<T>;
644
+ isEmpty(): boolean;
645
+ size(): number;
646
+ toString(): string;
647
+ }
648
+ /** 双向链表 */
649
+ declare class DoublyLinkedList<T> extends LinkedList<T> {
650
+ /**
651
+ * create
652
+ * @param equalsFn 比较是否相等(支持自定义)
653
+ */
654
+ constructor(equalsFn?: (a: T, b: T) => boolean);
655
+ /**
656
+ * 向链表尾部添加元素
657
+ * @param element
658
+ */
659
+ push(element: T): void;
660
+ /**
661
+ * 向链表指定位置添加元素
662
+ * @param element
663
+ * @param index
664
+ */
665
+ insert(element: T, index: number): boolean;
666
+ /**
667
+ * 从链表的特定位置移除一个元素
668
+ * @param index
669
+ */
670
+ removeAt(index: number): T;
671
+ /**
672
+ * 获取链表中指定位置的元素,如果不存在返回 null
673
+ * @param index
674
+ */
675
+ getElementAt(index: number): DoublyNode<T>;
676
+ getHead(): DoublyNode<T>;
677
+ getTail(): DoublyNode<T>;
678
+ clear(): void;
679
+ }
680
+
681
+ declare class Stack<T> {
682
+ constructor(equalsFn?: (a: T, b: T) => boolean);
683
+ push(element: T): void;
684
+ pop(): T;
685
+ peek(): T;
686
+ size(): number;
687
+ isEmpty(): boolean;
688
+ clear(): void;
689
+ toString(): string;
690
+ }
691
+
692
+ export { Adapter, Binary, BinaryHeap, CocosEntry, DoublyLinkedList, DoublyNode, GlobalTimer, HeapNode, InnerTimer, LinkedList, LinkedNode, Module, Platform, PlatformType, Screen, Stack, Time, Utils, debug, enableDebugMode, error, info, log, md5, warn };
693
+ export type { ICheckUpdatePromiseResult, IPromiseResult };