@rsmax/toutiao 1.3.7 → 1.3.9

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 (88) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/cjs/api/index.d.ts +1981 -1047
  3. package/cjs/api/index.js +313 -90
  4. package/cjs/hostComponents/Ad/index.d.ts +12 -0
  5. package/cjs/hostComponents/Ad/index.js +8 -0
  6. package/cjs/hostComponents/Ad/node.d.ts +10 -0
  7. package/cjs/hostComponents/Ad/node.js +13 -0
  8. package/cjs/hostComponents/Camera/index.d.ts +19 -0
  9. package/cjs/hostComponents/Camera/index.js +5 -0
  10. package/cjs/hostComponents/Camera/node.d.ts +17 -0
  11. package/cjs/hostComponents/Camera/node.js +20 -0
  12. package/cjs/hostComponents/LivePlayer/index.d.ts +28 -0
  13. package/cjs/hostComponents/LivePlayer/index.js +5 -0
  14. package/cjs/hostComponents/LivePlayer/node.d.ts +18 -0
  15. package/cjs/hostComponents/LivePlayer/node.js +21 -0
  16. package/cjs/hostComponents/LivePreview/index.d.ts +18 -0
  17. package/cjs/hostComponents/LivePreview/index.js +5 -0
  18. package/cjs/hostComponents/LivePreview/node.d.ts +16 -0
  19. package/cjs/hostComponents/LivePreview/node.js +19 -0
  20. package/cjs/hostComponents/Map/index.d.ts +115 -0
  21. package/cjs/hostComponents/Map/index.js +5 -0
  22. package/cjs/hostComponents/Map/node.d.ts +35 -0
  23. package/cjs/hostComponents/Map/node.js +38 -0
  24. package/cjs/hostComponents/Mask/index.d.ts +12 -0
  25. package/cjs/hostComponents/Mask/index.js +13 -0
  26. package/cjs/hostComponents/Mask/node.d.ts +7 -0
  27. package/cjs/hostComponents/Mask/node.js +10 -0
  28. package/cjs/hostComponents/MatchMedia/index.d.ts +18 -0
  29. package/cjs/hostComponents/MatchMedia/index.js +9 -0
  30. package/cjs/hostComponents/MatchMedia/node.d.ts +8 -0
  31. package/cjs/hostComponents/MatchMedia/node.js +11 -0
  32. package/cjs/hostComponents/MovableArea/index.d.ts +1 -1
  33. package/cjs/hostComponents/MovableView/index.d.ts +1 -1
  34. package/cjs/hostComponents/Progress/index.d.ts +1 -0
  35. package/cjs/hostComponents/Progress/node.d.ts +1 -0
  36. package/cjs/hostComponents/Progress/node.js +1 -0
  37. package/cjs/hostComponents/RichText/index.d.ts +1 -0
  38. package/cjs/hostComponents/RtcRoom/index.d.ts +10 -0
  39. package/cjs/hostComponents/RtcRoom/index.js +5 -0
  40. package/cjs/hostComponents/RtcRoom/node.d.ts +10 -0
  41. package/cjs/hostComponents/RtcRoom/node.js +13 -0
  42. package/cjs/hostComponents/index.d.ts +8 -0
  43. package/cjs/hostComponents/index.js +8 -0
  44. package/cjs/hostComponents/node.js +16 -0
  45. package/esm/api/index.d.ts +1981 -1047
  46. package/esm/api/index.js +308 -87
  47. package/esm/hostComponents/Ad/index.d.ts +12 -0
  48. package/esm/hostComponents/Ad/index.js +5 -0
  49. package/esm/hostComponents/Ad/node.d.ts +10 -0
  50. package/esm/hostComponents/Ad/node.js +10 -0
  51. package/esm/hostComponents/Camera/index.d.ts +19 -0
  52. package/esm/hostComponents/Camera/index.js +2 -0
  53. package/esm/hostComponents/Camera/node.d.ts +17 -0
  54. package/esm/hostComponents/Camera/node.js +17 -0
  55. package/esm/hostComponents/LivePlayer/index.d.ts +28 -0
  56. package/esm/hostComponents/LivePlayer/index.js +2 -0
  57. package/esm/hostComponents/LivePlayer/node.d.ts +18 -0
  58. package/esm/hostComponents/LivePlayer/node.js +18 -0
  59. package/esm/hostComponents/LivePreview/index.d.ts +18 -0
  60. package/esm/hostComponents/LivePreview/index.js +2 -0
  61. package/esm/hostComponents/LivePreview/node.d.ts +16 -0
  62. package/esm/hostComponents/LivePreview/node.js +16 -0
  63. package/esm/hostComponents/Map/index.d.ts +115 -0
  64. package/esm/hostComponents/Map/index.js +2 -0
  65. package/esm/hostComponents/Map/node.d.ts +35 -0
  66. package/esm/hostComponents/Map/node.js +35 -0
  67. package/esm/hostComponents/Mask/index.d.ts +12 -0
  68. package/esm/hostComponents/Mask/index.js +10 -0
  69. package/esm/hostComponents/Mask/node.d.ts +7 -0
  70. package/esm/hostComponents/Mask/node.js +7 -0
  71. package/esm/hostComponents/MatchMedia/index.d.ts +18 -0
  72. package/esm/hostComponents/MatchMedia/index.js +6 -0
  73. package/esm/hostComponents/MatchMedia/node.d.ts +8 -0
  74. package/esm/hostComponents/MatchMedia/node.js +8 -0
  75. package/esm/hostComponents/MovableArea/index.d.ts +1 -1
  76. package/esm/hostComponents/MovableView/index.d.ts +1 -1
  77. package/esm/hostComponents/Progress/index.d.ts +1 -0
  78. package/esm/hostComponents/Progress/node.d.ts +1 -0
  79. package/esm/hostComponents/Progress/node.js +1 -0
  80. package/esm/hostComponents/RichText/index.d.ts +1 -0
  81. package/esm/hostComponents/RtcRoom/index.d.ts +10 -0
  82. package/esm/hostComponents/RtcRoom/index.js +2 -0
  83. package/esm/hostComponents/RtcRoom/node.d.ts +10 -0
  84. package/esm/hostComponents/RtcRoom/node.js +10 -0
  85. package/esm/hostComponents/index.d.ts +8 -0
  86. package/esm/hostComponents/index.js +8 -0
  87. package/esm/hostComponents/node.js +16 -0
  88. package/package.json +7 -7
@@ -1,118 +1,26 @@
1
- export declare const getAppStub: import("@douyin-microapp/typings/types/app").GetApp;
2
1
  export declare const canIUse: import("@douyin-microapp/typings/api/types").SyncAPI<[schema: string], boolean>;
3
- export declare const getSystemInfoSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/system-info").SystemInfo>;
4
- export declare const getSystemInfo: (arg?: ({
5
- success?: ((res: {
6
- errMsg: string;
7
- system: string;
8
- platform: string;
9
- brand: string;
10
- model: string;
11
- version: string;
12
- appName: string;
13
- SDKVersion: string;
14
- screenWidth: number;
15
- screenHeight: number;
16
- windowWidth: number;
17
- windowHeight: number;
18
- pixelRatio: number;
19
- statusBarHeight: number;
20
- safeArea: {
21
- left: number;
22
- right: number;
23
- top: number;
24
- bottom: number;
25
- width: number;
26
- height: number;
27
- };
28
- }) => void) | undefined;
29
- fail?: ((res: {
30
- errMsg: string;
31
- errNo?: number | undefined;
32
- }) => void) | undefined;
33
- complete?: ((res: Partial<{
34
- errMsg: string;
35
- system: string;
36
- platform: string;
37
- brand: string;
38
- model: string;
39
- version: string;
40
- appName: string;
41
- SDKVersion: string;
42
- screenWidth: number;
43
- screenHeight: number;
2
+ export declare const canIPutStuffOverComponent: import("@douyin-microapp/typings/api/types").SyncAPI<[componentName: string], {
3
+ res: boolean;
4
+ }>;
5
+ export declare const base64ToArrayBuffer: import("@douyin-microapp/typings/api/types").SyncAPI<[str: string], import("@douyin-microapp/typings/api/base64-to-array-buffer").arrayBuffer>;
6
+ export declare const arrayBufferToBase64: import("@douyin-microapp/typings/api/types").SyncAPI<[{
7
+ obj: ArrayBuffer;
8
+ }], {
9
+ base64: string;
10
+ }>;
11
+ export declare const setPageInfo: (arg?: any) => Promise<any>;
12
+ export declare const performance: import("@douyin-microapp/typings/api/performance").Performance;
13
+ export declare const createWorker: import("@douyin-microapp/typings/api/types").SyncAPI<[scriptPath: string], import("@douyin-microapp/typings/api/create-worker").workerContext>;
14
+ export declare const offWindowResize: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
15
+ offWindowResize: (callback: () => void) => void;
16
+ }>;
17
+ export declare const onWindowResize: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
18
+ windowResize: (callback: (res: {
44
19
  windowWidth: number;
45
20
  windowHeight: number;
46
- pixelRatio: number;
47
- statusBarHeight: number;
48
- safeArea: {
49
- left: number;
50
- right: number;
51
- top: number;
52
- bottom: number;
53
- width: number;
54
- height: number;
55
- };
56
- }> & {
57
- errMsg: string;
58
- errNo?: number | undefined;
59
- }) => void) | undefined;
60
- } & import("@rsmax/framework-shared").PromisifyArgs<{
61
- errMsg: string;
62
- system: string;
63
- platform: string;
64
- brand: string;
65
- model: string;
66
- version: string;
67
- appName: string;
68
- SDKVersion: string;
69
- screenWidth: number;
70
- screenHeight: number;
71
- windowWidth: number;
72
- windowHeight: number;
73
- pixelRatio: number;
74
- statusBarHeight: number;
75
- safeArea: {
76
- left: number;
77
- right: number;
78
- top: number;
79
- bottom: number;
80
- width: number;
81
- height: number;
82
- };
83
- }, {
84
- errMsg: string;
85
- errNo?: number | undefined;
86
- }>) | undefined) => Promise<{
87
- errMsg: string;
88
- system: string;
89
- platform: string;
90
- brand: string;
91
- model: string;
92
- version: string;
93
- appName: string;
94
- SDKVersion: string;
95
- screenWidth: number;
96
- screenHeight: number;
97
- windowWidth: number;
98
- windowHeight: number;
99
- pixelRatio: number;
100
- statusBarHeight: number;
101
- safeArea: {
102
- left: number;
103
- right: number;
104
- top: number;
105
- bottom: number;
106
- width: number;
107
- height: number;
108
- };
109
- }>;
110
- export declare const getUpdateManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
111
- applyUpdate: CallableFunction;
112
- onCheckForUpdate: import("@douyin-microapp/typings/api/update-manager").onCheckForUpdateCallback;
113
- onUpdateFailed: import("@douyin-microapp/typings/api/update-manager").onUpdateFailedCallback;
114
- onUpdateReady: CallableFunction;
21
+ }) => void) => void;
115
22
  }>;
23
+ export declare const getEnterOptionsSync: any;
116
24
  export declare const getLaunchOptionsSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
117
25
  path: string;
118
26
  scene: string;
@@ -126,10 +34,82 @@ export declare const exitMiniProgram: import("@douyin-microapp/typings/api/types
126
34
  errMsg: string;
127
35
  errNo?: number | undefined;
128
36
  }>;
129
- export declare const switchTab: (arg?: ({
37
+ export declare const getUpdateManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
38
+ applyUpdate: CallableFunction;
39
+ onCheckForUpdate: import("@douyin-microapp/typings/api/update-manager").onCheckForUpdateCallback;
40
+ onUpdateFailed: import("@douyin-microapp/typings/api/update-manager").onUpdateFailedCallback;
41
+ onUpdateReady: CallableFunction;
42
+ }>;
43
+ export declare const onAppShow: import("@douyin-microapp/typings/api/types").SyncAPI<[(res: {
44
+ path: string;
45
+ scene: number;
46
+ query: object;
47
+ referrerInfo: {
48
+ appId: string;
49
+ extraData: object;
50
+ };
51
+ }) => void], void>;
52
+ export declare const offAppShow: import("@douyin-microapp/typings/api/types").SyncAPI<[CallableFunction], void>;
53
+ export declare const onAppHide: import("@douyin-microapp/typings/api/types").SyncAPI<[CallableFunction], void>;
54
+ export declare const offAppHide: import("@douyin-microapp/typings/api/types").SyncAPI<[CallableFunction], void>;
55
+ export declare const offUnhandledRejection: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: () => void], void>;
56
+ export declare const onError: import("@douyin-microapp/typings/api/types").SyncAPI<[(error: string) => void], void>;
57
+ export declare const offError: import("@douyin-microapp/typings/api/types").SyncAPI<[callback?: CallableFunction | undefined], void>;
58
+ export declare const onLazyLoadError: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: (res: {
59
+ type: string;
60
+ subpackage: string[];
61
+ errMsg: string;
62
+ }) => void, time?: number | undefined], void>;
63
+ export declare const offLazyLoadError: import("@douyin-microapp/typings/api/types").SyncAPI<[() => void], void>;
64
+ export declare const onUnhandledRejection: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: (unhandledRejection: {
65
+ reason: unknown;
66
+ promise: Promise<unknown>;
67
+ }) => void], void>;
68
+ export declare const onAppLaunch: any;
69
+ export declare const offAppLaunch: any;
70
+ export declare const env: {
71
+ readonly USER_DATA_PATH: string;
72
+ readonly VERSION: string;
73
+ };
74
+ export declare const getEnvInfoSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
75
+ microapp: {
76
+ mpVersion: string;
77
+ envType: string;
78
+ appId: string;
79
+ };
80
+ plugin: Record<string, unknown>;
81
+ common: {
82
+ USER_DATA_PATH: string;
83
+ location: string | undefined;
84
+ launchFrom: string | undefined;
85
+ schema: string | undefined;
86
+ };
87
+ }>;
88
+ export declare const createSelectorQuery: () => import("@douyin-microapp/typings/types/api").SelectorQuery;
89
+ export declare const createIntersectionObserver: (options?: import("@douyin-microapp/typings/types/api").CreateIntersectionObserverOption | undefined) => import("@douyin-microapp/typings/types/api").IntersectionObserver;
90
+ export declare const matchMedia: any;
91
+ export declare const request: (arg?: ({
130
92
  url: string;
93
+ header?: object | undefined;
94
+ method?: "GET" | "POST" | "OPTIONS" | "PUT" | "HEAD" | "DELETE" | "PATCH" | undefined;
95
+ data?: object | {
96
+ readonly byteLength: number;
97
+ slice: (begin: number, end?: number | undefined) => ArrayBuffer;
98
+ readonly [Symbol.toStringTag]: string;
99
+ } | undefined;
100
+ dataType?: string | undefined;
101
+ responseType?: string | undefined;
131
102
  success?: ((res: {
132
103
  errMsg: string;
104
+ statusCode: number;
105
+ header: {
106
+ [x: string]: string;
107
+ };
108
+ data: string | object | {
109
+ readonly byteLength: number;
110
+ slice: (begin: number, end?: number | undefined) => ArrayBuffer;
111
+ readonly [Symbol.toStringTag]: string;
112
+ };
133
113
  }) => void) | undefined;
134
114
  fail?: ((res: {
135
115
  errMsg: string;
@@ -137,22 +117,54 @@ export declare const switchTab: (arg?: ({
137
117
  }) => void) | undefined;
138
118
  complete?: ((res: Partial<{
139
119
  errMsg: string;
120
+ statusCode: number;
121
+ header: {
122
+ [x: string]: string;
123
+ };
124
+ data: string | object | {
125
+ readonly byteLength: number;
126
+ slice: (begin: number, end?: number | undefined) => ArrayBuffer;
127
+ readonly [Symbol.toStringTag]: string;
128
+ };
140
129
  }> & {
141
130
  errMsg: string;
142
131
  errNo?: number | undefined;
143
132
  }) => void) | undefined;
144
133
  } & import("@rsmax/framework-shared").PromisifyArgs<{
145
134
  errMsg: string;
135
+ statusCode: number;
136
+ header: {
137
+ [x: string]: string;
138
+ };
139
+ data: string | object | {
140
+ readonly byteLength: number;
141
+ slice: (begin: number, end?: number | undefined) => ArrayBuffer;
142
+ readonly [Symbol.toStringTag]: string;
143
+ };
146
144
  }, {
147
145
  errMsg: string;
148
146
  errNo?: number | undefined;
149
147
  }>) | undefined) => Promise<{
150
148
  errMsg: string;
149
+ statusCode: number;
150
+ header: {
151
+ [x: string]: string;
152
+ };
153
+ data: string | object | {
154
+ readonly byteLength: number;
155
+ slice: (begin: number, end?: number | undefined) => ArrayBuffer;
156
+ readonly [Symbol.toStringTag]: string;
157
+ };
151
158
  }>;
152
- export declare const reLaunch: (arg?: ({
159
+ export declare const downloadFile: (arg?: ({
153
160
  url: string;
161
+ header?: {
162
+ [x: string]: string;
163
+ } | undefined;
154
164
  success?: ((res: {
155
165
  errMsg: string;
166
+ tempFilePath: string;
167
+ statusCode: number;
156
168
  }) => void) | undefined;
157
169
  fail?: ((res: {
158
170
  errMsg: string;
@@ -160,22 +172,38 @@ export declare const reLaunch: (arg?: ({
160
172
  }) => void) | undefined;
161
173
  complete?: ((res: Partial<{
162
174
  errMsg: string;
175
+ tempFilePath: string;
176
+ statusCode: number;
163
177
  }> & {
164
178
  errMsg: string;
165
179
  errNo?: number | undefined;
166
180
  }) => void) | undefined;
167
181
  } & import("@rsmax/framework-shared").PromisifyArgs<{
168
182
  errMsg: string;
183
+ tempFilePath: string;
184
+ statusCode: number;
169
185
  }, {
170
186
  errMsg: string;
171
187
  errNo?: number | undefined;
172
188
  }>) | undefined) => Promise<{
173
189
  errMsg: string;
190
+ tempFilePath: string;
191
+ statusCode: number;
174
192
  }>;
175
- export declare const redirectTo: (arg?: ({
193
+ export declare const uploadFile: (arg?: ({
176
194
  url: string;
195
+ filePath: string;
196
+ name: string;
197
+ header?: {
198
+ [x: string]: string;
199
+ } | undefined;
200
+ formData?: {
201
+ [x: string]: string;
202
+ } | undefined;
177
203
  success?: ((res: {
178
204
  errMsg: string;
205
+ data: string;
206
+ statusCode: number;
179
207
  }) => void) | undefined;
180
208
  fail?: ((res: {
181
209
  errMsg: string;
@@ -183,22 +211,49 @@ export declare const redirectTo: (arg?: ({
183
211
  }) => void) | undefined;
184
212
  complete?: ((res: Partial<{
185
213
  errMsg: string;
214
+ data: string;
215
+ statusCode: number;
186
216
  }> & {
187
217
  errMsg: string;
188
218
  errNo?: number | undefined;
189
219
  }) => void) | undefined;
190
220
  } & import("@rsmax/framework-shared").PromisifyArgs<{
191
221
  errMsg: string;
222
+ data: string;
223
+ statusCode: number;
192
224
  }, {
193
225
  errMsg: string;
194
226
  errNo?: number | undefined;
195
227
  }>) | undefined) => Promise<{
196
228
  errMsg: string;
229
+ data: string;
230
+ statusCode: number;
197
231
  }>;
198
- export declare const navigateTo: (arg?: ({
232
+ export declare const connectSocket: import("@douyin-microapp/typings/api/types").AsyncAPIWithHandler<{
199
233
  url: string;
234
+ header?: Record<string, string> | undefined;
235
+ protocols?: string[] | undefined;
236
+ }, {
237
+ socketTaskId: number;
238
+ }, import("@douyin-microapp/typings/api/connect-socket").SocketTask, {
239
+ errMsg: string;
240
+ socketTaskId: number;
241
+ }, {
242
+ errMsg: string;
243
+ errNo?: number | undefined;
244
+ }>;
245
+ export declare const createEventSource: any;
246
+ export declare const chooseImage: (arg?: ({
247
+ count: number;
248
+ sourceType: import("@douyin-microapp/typings/api/choose-image").SourceType[];
249
+ sizeType: import("@douyin-microapp/typings/api/choose-image").SizeType[];
200
250
  success?: ((res: {
201
251
  errMsg: string;
252
+ tempFilePaths: string;
253
+ tempFiles: {
254
+ path: string;
255
+ size: number;
256
+ }[];
202
257
  }) => void) | undefined;
203
258
  fail?: ((res: {
204
259
  errMsg: string;
@@ -206,20 +261,35 @@ export declare const navigateTo: (arg?: ({
206
261
  }) => void) | undefined;
207
262
  complete?: ((res: Partial<{
208
263
  errMsg: string;
264
+ tempFilePaths: string;
265
+ tempFiles: {
266
+ path: string;
267
+ size: number;
268
+ }[];
209
269
  }> & {
210
270
  errMsg: string;
211
271
  errNo?: number | undefined;
212
272
  }) => void) | undefined;
213
273
  } & import("@rsmax/framework-shared").PromisifyArgs<{
214
274
  errMsg: string;
275
+ tempFilePaths: string;
276
+ tempFiles: {
277
+ path: string;
278
+ size: number;
279
+ }[];
215
280
  }, {
216
281
  errMsg: string;
217
282
  errNo?: number | undefined;
218
283
  }>) | undefined) => Promise<{
219
284
  errMsg: string;
285
+ tempFilePaths: string;
286
+ tempFiles: {
287
+ path: string;
288
+ size: number;
289
+ }[];
220
290
  }>;
221
- export declare const navigateBack: (arg?: ({
222
- delta?: number | undefined;
291
+ export declare const saveImageToPhotosAlbum: (arg?: ({
292
+ filePath: string;
223
293
  success?: ((res: {
224
294
  errMsg: string;
225
295
  }) => void) | undefined;
@@ -241,11 +311,10 @@ export declare const navigateBack: (arg?: ({
241
311
  }>) | undefined) => Promise<{
242
312
  errMsg: string;
243
313
  }>;
244
- export declare const showToast: (arg?: ({
245
- title: string;
246
- icon?: "none" | "success" | "loading" | "fail" | undefined;
247
- duration?: number | undefined;
248
- mask?: boolean | undefined;
314
+ export declare const previewImage: (arg?: ({
315
+ urls: string[];
316
+ current?: string | undefined;
317
+ showmenu?: boolean | undefined;
249
318
  success?: ((res: {
250
319
  errMsg: string;
251
320
  }) => void) | undefined;
@@ -267,17 +336,15 @@ export declare const showToast: (arg?: ({
267
336
  }>) | undefined) => Promise<{
268
337
  errMsg: string;
269
338
  }>;
270
- export declare const showModal: (arg?: ({
271
- title?: string | undefined;
272
- content?: string | undefined;
273
- confirmText?: string | undefined;
274
- showCancel?: boolean | undefined;
275
- cancelText?: string | undefined;
339
+ export declare const getImageInfo: (arg?: ({
340
+ src: string;
276
341
  success?: ((res: {
277
342
  errMsg: string;
278
- confirm: boolean;
279
- cancel: boolean;
280
- content?: string | undefined;
343
+ width: number;
344
+ height: number;
345
+ type: string;
346
+ path: string;
347
+ orientation: string;
281
348
  }) => void) | undefined;
282
349
  fail?: ((res: {
283
350
  errMsg: string;
@@ -285,32 +352,39 @@ export declare const showModal: (arg?: ({
285
352
  }) => void) | undefined;
286
353
  complete?: ((res: Partial<{
287
354
  errMsg: string;
288
- confirm: boolean;
289
- cancel: boolean;
290
- content?: string | undefined;
355
+ width: number;
356
+ height: number;
357
+ type: string;
358
+ path: string;
359
+ orientation: string;
291
360
  }> & {
292
361
  errMsg: string;
293
362
  errNo?: number | undefined;
294
363
  }) => void) | undefined;
295
364
  } & import("@rsmax/framework-shared").PromisifyArgs<{
296
365
  errMsg: string;
297
- confirm: boolean;
298
- cancel: boolean;
299
- content?: string | undefined;
366
+ width: number;
367
+ height: number;
368
+ type: string;
369
+ path: string;
370
+ orientation: string;
300
371
  }, {
301
372
  errMsg: string;
302
373
  errNo?: number | undefined;
303
374
  }>) | undefined) => Promise<{
304
375
  errMsg: string;
305
- confirm: boolean;
306
- cancel: boolean;
307
- content?: string | undefined;
376
+ width: number;
377
+ height: number;
378
+ type: string;
379
+ path: string;
380
+ orientation: string;
308
381
  }>;
309
- export declare const showLoading: (arg?: ({
310
- title: string;
311
- mask?: boolean | undefined;
382
+ export declare const compressImage: (arg?: ({
383
+ src: string | string[];
384
+ quality?: number | undefined;
312
385
  success?: ((res: {
313
386
  errMsg: string;
387
+ tempFilePath: string | string[];
314
388
  }) => void) | undefined;
315
389
  fail?: ((res: {
316
390
  errMsg: string;
@@ -318,20 +392,30 @@ export declare const showLoading: (arg?: ({
318
392
  }) => void) | undefined;
319
393
  complete?: ((res: Partial<{
320
394
  errMsg: string;
395
+ tempFilePath: string | string[];
321
396
  }> & {
322
397
  errMsg: string;
323
398
  errNo?: number | undefined;
324
399
  }) => void) | undefined;
325
400
  } & import("@rsmax/framework-shared").PromisifyArgs<{
326
401
  errMsg: string;
402
+ tempFilePath: string | string[];
327
403
  }, {
328
404
  errMsg: string;
329
405
  errNo?: number | undefined;
330
406
  }>) | undefined) => Promise<{
331
407
  errMsg: string;
408
+ tempFilePath: string | string[];
332
409
  }>;
333
- export declare const showActionSheet: (arg?: any) => Promise<any>;
334
- export declare const hideToast: (arg?: ({
410
+ export declare const getRecorderManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/get-recorder-manager").RecordManager>;
411
+ export declare const getBackgroundAudioManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/background-audio").BackgroundAudioManager>;
412
+ export declare const createInnerAudioContext: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/inner-audio").InnerAudioContext>;
413
+ export declare const chooseVideo: (arg?: any) => Promise<any>;
414
+ export declare const saveVideoToPhotosAlbum: (arg?: any) => Promise<any>;
415
+ export declare const canIUseVideoFormat: (arg?: any) => Promise<any>;
416
+ export declare const prerenderVideo: (arg?: ({
417
+ src: string;
418
+ size: number;
335
419
  success?: ((res: {
336
420
  errMsg: string;
337
421
  }) => void) | undefined;
@@ -353,9 +437,24 @@ export declare const hideToast: (arg?: ({
353
437
  }>) | undefined) => Promise<{
354
438
  errMsg: string;
355
439
  }>;
356
- export declare const hideLoading: (arg?: ({
440
+ export declare const preloadVideo: (arg?: any) => Promise<any>;
441
+ export declare const chooseMedia: (arg?: ({
442
+ count?: number | undefined;
443
+ mediaType?: ("video" | "image")[] | undefined;
444
+ sourceType?: ("camera" | "album")[] | undefined;
445
+ maxDuration?: number | undefined;
446
+ sizeType?: ("original" | "compressed")[] | undefined;
447
+ camera?: "front" | "back" | undefined;
357
448
  success?: ((res: {
358
449
  errMsg: string;
450
+ tempFiles: {
451
+ tempFilePath: string;
452
+ size: number;
453
+ mediaType: string;
454
+ duration?: number | undefined;
455
+ height?: number | undefined;
456
+ width?: number | undefined;
457
+ }[];
359
458
  }) => void) | undefined;
360
459
  fail?: ((res: {
361
460
  errMsg: string;
@@ -363,43 +462,55 @@ export declare const hideLoading: (arg?: ({
363
462
  }) => void) | undefined;
364
463
  complete?: ((res: Partial<{
365
464
  errMsg: string;
465
+ tempFiles: {
466
+ tempFilePath: string;
467
+ size: number;
468
+ mediaType: string;
469
+ duration?: number | undefined;
470
+ height?: number | undefined;
471
+ width?: number | undefined;
472
+ }[];
366
473
  }> & {
367
474
  errMsg: string;
368
475
  errNo?: number | undefined;
369
476
  }) => void) | undefined;
370
477
  } & import("@rsmax/framework-shared").PromisifyArgs<{
371
478
  errMsg: string;
479
+ tempFiles: {
480
+ tempFilePath: string;
481
+ size: number;
482
+ mediaType: string;
483
+ duration?: number | undefined;
484
+ height?: number | undefined;
485
+ width?: number | undefined;
486
+ }[];
372
487
  }, {
373
488
  errMsg: string;
374
489
  errNo?: number | undefined;
375
490
  }>) | undefined) => Promise<{
376
491
  errMsg: string;
492
+ tempFiles: {
493
+ tempFilePath: string;
494
+ size: number;
495
+ mediaType: string;
496
+ duration?: number | undefined;
497
+ height?: number | undefined;
498
+ width?: number | undefined;
499
+ }[];
377
500
  }>;
378
- export declare const setNavigationBarTitle: import("@douyin-microapp/typings/api/types").AsyncAPI<{
379
- title: string;
380
- }, {}, {
381
- errMsg: string;
382
- }, {
383
- errMsg: string;
384
- errNo?: number | undefined;
385
- }>;
386
- export declare const stopPullDownRefresh: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {}, {
387
- errMsg: string;
388
- }, {
389
- errMsg: string;
390
- errNo?: number | undefined;
391
- }>;
392
- export declare const startPullDownRefresh: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {}, {
393
- errMsg: string;
394
- }, {
395
- errMsg: string;
396
- errNo?: number | undefined;
397
- }>;
398
- export declare const pageScrollTo: (arg?: ({
399
- scrollTop: number;
400
- duration?: number | undefined;
501
+ export declare const createVideoContext: import("@douyin-microapp/typings/api/types").SyncAPI<[id: string, component?: object | undefined], import("@douyin-microapp/typings/api/video-context").VideoContext>;
502
+ export declare const createLivePlayerContext: import("@douyin-microapp/typings/api/types").SyncAPI<[id: string, component: object] | [id: string], import("@douyin-microapp/typings/api/create-live-player-context").LivePlayerContext>;
503
+ export declare const createCameraContext: any;
504
+ export declare const createEffectCameraStream: any;
505
+ export declare const createMediaRecorder: any;
506
+ export declare const createRtcRoomContext: any;
507
+ export declare const createMapContext: import("@douyin-microapp/typings/api/types").SyncAPI<[mapId: string, component?: object | undefined], import("@douyin-microapp/typings/api/map").MapContext>;
508
+ export declare const saveFile: (arg?: ({
509
+ tempFilePath: string;
510
+ filePath?: string | undefined;
401
511
  success?: ((res: {
402
512
  errMsg: string;
513
+ savedFilePath: string;
403
514
  }) => void) | undefined;
404
515
  fail?: ((res: {
405
516
  errMsg: string;
@@ -407,46 +518,28 @@ export declare const pageScrollTo: (arg?: ({
407
518
  }) => void) | undefined;
408
519
  complete?: ((res: Partial<{
409
520
  errMsg: string;
521
+ savedFilePath: string;
410
522
  }> & {
411
523
  errMsg: string;
412
524
  errNo?: number | undefined;
413
525
  }) => void) | undefined;
414
526
  } & import("@rsmax/framework-shared").PromisifyArgs<{
415
527
  errMsg: string;
528
+ savedFilePath: string;
416
529
  }, {
417
530
  errMsg: string;
418
531
  errNo?: number | undefined;
419
532
  }>) | undefined) => Promise<{
420
533
  errMsg: string;
534
+ savedFilePath: string;
421
535
  }>;
422
- export declare const createAnimation: import("@douyin-microapp/typings/api/types").SyncAPI<[{
423
- duration?: number | undefined;
424
- timingFunction?: string | undefined;
425
- delay?: number | undefined;
426
- transformOrigin?: string | undefined;
427
- } | undefined], import("@douyin-microapp/typings/api/create-animation").Animation>;
428
- export declare const request: (arg?: ({
429
- url: string;
430
- header?: object | undefined;
431
- method?: "GET" | "POST" | "OPTIONS" | "PUT" | "HEAD" | "DELETE" | "PATCH" | undefined;
432
- data?: object | {
433
- readonly byteLength: number;
434
- slice: (begin: number, end?: number | undefined) => ArrayBuffer;
435
- readonly [Symbol.toStringTag]: string;
436
- } | undefined;
437
- dataType?: string | undefined;
438
- responseType?: string | undefined;
536
+ export declare const getFileInfo: import("@douyin-microapp/typings/api/fs").GetFileInfo;
537
+ export declare const openDocument: (arg?: any) => Promise<any>;
538
+ export declare const getSavedFileList: import("@douyin-microapp/typings/api/fs").GetSavedFileList;
539
+ export declare const removeSavedFile: (arg?: ({
540
+ filePath: string;
439
541
  success?: ((res: {
440
542
  errMsg: string;
441
- statusCode: number;
442
- header: {
443
- [x: string]: string;
444
- };
445
- data: string | object | {
446
- readonly byteLength: number;
447
- slice: (begin: number, end?: number | undefined) => ArrayBuffer;
448
- readonly [Symbol.toStringTag]: string;
449
- };
450
543
  }) => void) | undefined;
451
544
  fail?: ((res: {
452
545
  errMsg: string;
@@ -454,132 +547,211 @@ export declare const request: (arg?: ({
454
547
  }) => void) | undefined;
455
548
  complete?: ((res: Partial<{
456
549
  errMsg: string;
457
- statusCode: number;
458
- header: {
459
- [x: string]: string;
460
- };
461
- data: string | object | {
462
- readonly byteLength: number;
463
- slice: (begin: number, end?: number | undefined) => ArrayBuffer;
464
- readonly [Symbol.toStringTag]: string;
465
- };
466
550
  }> & {
467
551
  errMsg: string;
468
552
  errNo?: number | undefined;
469
553
  }) => void) | undefined;
470
554
  } & import("@rsmax/framework-shared").PromisifyArgs<{
471
555
  errMsg: string;
472
- statusCode: number;
473
- header: {
474
- [x: string]: string;
475
- };
476
- data: string | object | {
477
- readonly byteLength: number;
478
- slice: (begin: number, end?: number | undefined) => ArrayBuffer;
479
- readonly [Symbol.toStringTag]: string;
480
- };
481
556
  }, {
482
557
  errMsg: string;
483
558
  errNo?: number | undefined;
484
559
  }>) | undefined) => Promise<{
485
560
  errMsg: string;
486
- statusCode: number;
487
- header: {
488
- [x: string]: string;
489
- };
490
- data: string | object | {
491
- readonly byteLength: number;
492
- slice: (begin: number, end?: number | undefined) => ArrayBuffer;
493
- readonly [Symbol.toStringTag]: string;
494
- };
495
561
  }>;
496
- export declare const downloadFile: (arg?: ({
497
- url: string;
498
- header?: {
499
- [x: string]: string;
500
- } | undefined;
501
- success?: ((res: {
562
+ export declare const getFileSystemManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
563
+ readFile: import("@douyin-microapp/typings/api/fs").ReadFile;
564
+ readFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, encoding?: string | undefined, position?: number | undefined, length?: number | undefined], string>;
565
+ writeFile: import("@douyin-microapp/typings/api/types").AsyncAPI<{
566
+ filePath: string;
567
+ data: string;
568
+ encoding: import("@douyin-microapp/typings/api/fs").encoding;
569
+ }, {}, {
502
570
  errMsg: string;
503
- tempFilePath: string;
504
- statusCode: number;
505
- }) => void) | undefined;
506
- fail?: ((res: {
571
+ }, {
507
572
  errMsg: string;
508
573
  errNo?: number | undefined;
509
- }) => void) | undefined;
510
- complete?: ((res: Partial<{
574
+ }>;
575
+ writeFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, data: string, encoding: import("@douyin-microapp/typings/api/fs").encoding], void>;
576
+ mkdir: import("@douyin-microapp/typings/api/types").AsyncAPI<{
577
+ dirPath: string;
578
+ recursive?: boolean | undefined;
579
+ }, {}, {
511
580
  errMsg: string;
512
- tempFilePath: string;
513
- statusCode: number;
514
- }> & {
581
+ }, {
515
582
  errMsg: string;
516
583
  errNo?: number | undefined;
517
- }) => void) | undefined;
518
- } & import("@rsmax/framework-shared").PromisifyArgs<{
519
- errMsg: string;
520
- tempFilePath: string;
521
- statusCode: number;
522
- }, {
523
- errMsg: string;
524
- errNo?: number | undefined;
525
- }>) | undefined) => Promise<{
526
- errMsg: string;
527
- tempFilePath: string;
528
- statusCode: number;
529
- }>;
530
- export declare const uploadFile: (arg?: ({
531
- url: string;
532
- filePath: string;
533
- name: string;
534
- header?: {
535
- [x: string]: string;
536
- } | undefined;
537
- formData?: {
538
- [x: string]: string;
539
- } | undefined;
540
- success?: ((res: {
584
+ }>;
585
+ mkdirSync: import("@douyin-microapp/typings/api/types").SyncAPI<[dirPath: string, recursive?: boolean | undefined], void>;
586
+ readdir: import("@douyin-microapp/typings/api/types").AsyncAPI<{
587
+ dirPath: string;
588
+ }, {
589
+ files: string[];
590
+ }, {
541
591
  errMsg: string;
542
- data: string;
543
- statusCode: number;
544
- }) => void) | undefined;
545
- fail?: ((res: {
592
+ files: string[];
593
+ }, {
546
594
  errMsg: string;
547
595
  errNo?: number | undefined;
548
- }) => void) | undefined;
549
- complete?: ((res: Partial<{
596
+ }>;
597
+ readdirSync: import("@douyin-microapp/typings/api/types").SyncAPI<[dirPath: string], string[]>;
598
+ rmdir: import("@douyin-microapp/typings/api/types").AsyncAPI<{
599
+ dirPath: string;
600
+ recursive?: boolean | undefined;
601
+ }, {}, {
550
602
  errMsg: string;
551
- data: string;
552
- statusCode: number;
553
- }> & {
603
+ }, {
554
604
  errMsg: string;
555
605
  errNo?: number | undefined;
556
- }) => void) | undefined;
557
- } & import("@rsmax/framework-shared").PromisifyArgs<{
558
- errMsg: string;
559
- data: string;
560
- statusCode: number;
561
- }, {
562
- errMsg: string;
563
- errNo?: number | undefined;
564
- }>) | undefined) => Promise<{
565
- errMsg: string;
566
- data: string;
567
- statusCode: number;
568
- }>;
569
- export declare const connectSocket: import("@douyin-microapp/typings/api/types").AsyncAPIWithHandler<{
570
- url: string;
571
- header?: Record<string, string> | undefined;
572
- protocols?: string[] | undefined;
573
- }, {
574
- socketTaskId: number;
575
- }, import("@douyin-microapp/typings/api/connect-socket").SocketTask, {
576
- errMsg: string;
577
- socketTaskId: number;
606
+ }>;
607
+ rmdirSync: import("@douyin-microapp/typings/api/types").SyncAPI<[dirPath: string, recursive?: boolean | undefined], void>;
608
+ access: import("@douyin-microapp/typings/api/types").AsyncAPI<{
609
+ path: string;
610
+ }, {}, {
611
+ errMsg: string;
612
+ }, {
613
+ errMsg: string;
614
+ errNo?: number | undefined;
615
+ }>;
616
+ accessSync: import("@douyin-microapp/typings/api/types").SyncAPI<[path: string], void>;
617
+ unlink: import("@douyin-microapp/typings/api/types").AsyncAPI<{
618
+ filePath: string;
619
+ }, {}, {
620
+ errMsg: string;
621
+ }, {
622
+ errMsg: string;
623
+ errNo?: number | undefined;
624
+ }>;
625
+ unlinkSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string], void>;
626
+ stat: import("@douyin-microapp/typings/api/types").AsyncAPI<{
627
+ path: string;
628
+ recursive?: boolean | undefined;
629
+ }, {
630
+ stat: import("@douyin-microapp/typings/api/fs").Stat;
631
+ stats: import("@douyin-microapp/typings/api/fs").Stat | {
632
+ path: string;
633
+ stat: import("@douyin-microapp/typings/api/fs").Stat;
634
+ }[];
635
+ }, {
636
+ errMsg: string;
637
+ stat: {
638
+ mode: string;
639
+ size: number;
640
+ lastAccessedTime: number;
641
+ lastModifiedTime: number;
642
+ isDirectory: () => {};
643
+ isFile: () => {};
644
+ };
645
+ stats: {
646
+ mode: string;
647
+ size: number;
648
+ lastAccessedTime: number;
649
+ lastModifiedTime: number;
650
+ isDirectory: () => {};
651
+ isFile: () => {};
652
+ } | {
653
+ path: string;
654
+ stat: {
655
+ mode: string;
656
+ size: number;
657
+ lastAccessedTime: number;
658
+ lastModifiedTime: number;
659
+ isDirectory: () => {};
660
+ isFile: () => {};
661
+ };
662
+ }[];
663
+ }, {
664
+ errMsg: string;
665
+ errNo?: number | undefined;
666
+ }>;
667
+ statSync: import("@douyin-microapp/typings/api/types").SyncAPI<[path: string, recursive?: boolean | undefined], import("@douyin-microapp/typings/api/fs").Stat | {
668
+ path: string;
669
+ stat: import("@douyin-microapp/typings/api/fs").Stat;
670
+ }[]>;
671
+ rename: import("@douyin-microapp/typings/api/types").AsyncAPI<{
672
+ oldPath: string;
673
+ newPath: string;
674
+ }, {}, {
675
+ errMsg: string;
676
+ }, {
677
+ errMsg: string;
678
+ errNo?: number | undefined;
679
+ }>;
680
+ renameSync: import("@douyin-microapp/typings/api/types").SyncAPI<[oldPath: string, newPath: string], void>;
681
+ copyFile: import("@douyin-microapp/typings/api/types").AsyncAPI<{
682
+ srcPath: string;
683
+ destPath: string;
684
+ }, {}, {
685
+ errMsg: string;
686
+ }, {
687
+ errMsg: string;
688
+ errNo?: number | undefined;
689
+ }>;
690
+ copyFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[srcPath: string, destPath: string], void>;
691
+ unzip: import("@douyin-microapp/typings/api/types").AsyncAPI<{
692
+ zipFilePath: string;
693
+ targetPath: string;
694
+ }, {}, {
695
+ errMsg: string;
696
+ }, {
697
+ errMsg: string;
698
+ errNo?: number | undefined;
699
+ }>;
700
+ saveFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[tempFilePath: string, filePath?: string | undefined], string>;
701
+ saveFile: import("@douyin-microapp/typings/api/fs").SaveFile;
702
+ getFileInfo: import("@douyin-microapp/typings/api/fs").GetFileInfo;
703
+ getSavedFileList: import("@douyin-microapp/typings/api/fs").GetSavedFileList;
704
+ removeSavedFile: import("@douyin-microapp/typings/api/fs").RemoveSavedFile;
705
+ appendFile: import("@douyin-microapp/typings/api/types").AsyncAPI<{
706
+ filePath: string;
707
+ data: string | ArrayBuffer;
708
+ encoding: import("@douyin-microapp/typings/api/fs").encoding;
709
+ }, {}, {
710
+ errMsg: string;
711
+ }, {
712
+ errMsg: string;
713
+ errNo?: number | undefined;
714
+ }>;
715
+ appendFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, data: string | ArrayBuffer, encoding: import("@douyin-microapp/typings/api/fs").encoding], void>;
716
+ truncate: import("@douyin-microapp/typings/api/types").AsyncAPI<{
717
+ filePath: string;
718
+ length: number;
719
+ }, {}, {
720
+ errMsg: string;
721
+ }, {
722
+ errMsg: string;
723
+ errNo?: number | undefined;
724
+ }>;
725
+ truncateSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, length: number], void>;
726
+ }>;
727
+ export declare const getStorage: (arg?: ({
728
+ key: string;
729
+ success?: ((res: {
730
+ errMsg: string;
731
+ data: any;
732
+ }) => void) | undefined;
733
+ fail?: ((res: {
734
+ errMsg: string;
735
+ errNo?: number | undefined;
736
+ }) => void) | undefined;
737
+ complete?: ((res: Partial<{
738
+ errMsg: string;
739
+ data: any;
740
+ }> & {
741
+ errMsg: string;
742
+ errNo?: number | undefined;
743
+ }) => void) | undefined;
744
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
745
+ errMsg: string;
746
+ data: any;
578
747
  }, {
579
748
  errMsg: string;
580
749
  errNo?: number | undefined;
750
+ }>) | undefined) => Promise<{
751
+ errMsg: string;
752
+ data: any;
581
753
  }>;
582
- export declare const setStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[key: string, data: unknown], void>;
754
+ export declare const getStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[key: string], any>;
583
755
  export declare const setStorage: (arg?: ({
584
756
  key: string;
585
757
  data: unknown;
@@ -604,7 +776,7 @@ export declare const setStorage: (arg?: ({
604
776
  }>) | undefined) => Promise<{
605
777
  errMsg: string;
606
778
  }>;
607
- export declare const removeStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[string], void>;
779
+ export declare const setStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[key: string, data: unknown], void>;
608
780
  export declare const removeStorage: (arg?: ({
609
781
  key: string;
610
782
  success?: ((res: {
@@ -628,12 +800,30 @@ export declare const removeStorage: (arg?: ({
628
800
  }>) | undefined) => Promise<{
629
801
  errMsg: string;
630
802
  }>;
631
- export declare const getStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[key: string], any>;
632
- export declare const getStorageInfoSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
633
- keys: string[];
634
- currentSize: number;
635
- limitSize: number;
803
+ export declare const removeStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[string], void>;
804
+ export declare const clearStorage: (arg?: ({
805
+ success?: ((res: {
806
+ errMsg: string;
807
+ }) => void) | undefined;
808
+ fail?: ((res: {
809
+ errMsg: string;
810
+ errNo?: number | undefined;
811
+ }) => void) | undefined;
812
+ complete?: ((res: Partial<{
813
+ errMsg: string;
814
+ }> & {
815
+ errMsg: string;
816
+ errNo?: number | undefined;
817
+ }) => void) | undefined;
818
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
819
+ errMsg: string;
820
+ }, {
821
+ errMsg: string;
822
+ errNo?: number | undefined;
823
+ }>) | undefined) => Promise<{
824
+ errMsg: string;
636
825
  }>;
826
+ export declare const clearStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], void>;
637
827
  export declare const getStorageInfo: (arg?: ({
638
828
  success?: ((res: {
639
829
  errMsg: string;
@@ -668,11 +858,24 @@ export declare const getStorageInfo: (arg?: ({
668
858
  currentSize: number;
669
859
  limitSize: number;
670
860
  }>;
671
- export declare const getStorage: (arg?: ({
672
- key: string;
861
+ export declare const getStorageInfoSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
862
+ keys: string[];
863
+ currentSize: number;
864
+ limitSize: number;
865
+ }>;
866
+ export declare const getLocation: (arg?: ({
867
+ type?: "wgs84" | "gcj02" | undefined;
868
+ isHighAccuracy?: boolean | undefined;
673
869
  success?: ((res: {
674
870
  errMsg: string;
675
- data: any;
871
+ latitude: number;
872
+ longitude: number;
873
+ altitude: number;
874
+ accuracy: number;
875
+ verticalAccuracy: number;
876
+ horizontalAccuracy: number;
877
+ speed: number;
878
+ city: string;
676
879
  }) => void) | undefined;
677
880
  fail?: ((res: {
678
881
  errMsg: string;
@@ -680,25 +883,51 @@ export declare const getStorage: (arg?: ({
680
883
  }) => void) | undefined;
681
884
  complete?: ((res: Partial<{
682
885
  errMsg: string;
683
- data: any;
886
+ latitude: number;
887
+ longitude: number;
888
+ altitude: number;
889
+ accuracy: number;
890
+ verticalAccuracy: number;
891
+ horizontalAccuracy: number;
892
+ speed: number;
893
+ city: string;
684
894
  }> & {
685
895
  errMsg: string;
686
896
  errNo?: number | undefined;
687
897
  }) => void) | undefined;
688
898
  } & import("@rsmax/framework-shared").PromisifyArgs<{
689
899
  errMsg: string;
690
- data: any;
900
+ latitude: number;
901
+ longitude: number;
902
+ altitude: number;
903
+ accuracy: number;
904
+ verticalAccuracy: number;
905
+ horizontalAccuracy: number;
906
+ speed: number;
907
+ city: string;
691
908
  }, {
692
909
  errMsg: string;
693
910
  errNo?: number | undefined;
694
911
  }>) | undefined) => Promise<{
695
912
  errMsg: string;
696
- data: any;
913
+ latitude: number;
914
+ longitude: number;
915
+ altitude: number;
916
+ accuracy: number;
917
+ verticalAccuracy: number;
918
+ horizontalAccuracy: number;
919
+ speed: number;
920
+ city: string;
697
921
  }>;
698
- export declare const clearStorageSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], void>;
699
- export declare const clearStorage: (arg?: ({
922
+ export declare const chooseLocation: (arg?: ({
923
+ latitude?: number | undefined;
924
+ longitude?: number | undefined;
700
925
  success?: ((res: {
701
926
  errMsg: string;
927
+ name: string;
928
+ address: string;
929
+ latitude: number;
930
+ longitude: number;
702
931
  }) => void) | undefined;
703
932
  fail?: ((res: {
704
933
  errMsg: string;
@@ -706,20 +935,36 @@ export declare const clearStorage: (arg?: ({
706
935
  }) => void) | undefined;
707
936
  complete?: ((res: Partial<{
708
937
  errMsg: string;
938
+ name: string;
939
+ address: string;
940
+ latitude: number;
941
+ longitude: number;
709
942
  }> & {
710
943
  errMsg: string;
711
944
  errNo?: number | undefined;
712
945
  }) => void) | undefined;
713
946
  } & import("@rsmax/framework-shared").PromisifyArgs<{
714
947
  errMsg: string;
948
+ name: string;
949
+ address: string;
950
+ latitude: number;
951
+ longitude: number;
715
952
  }, {
716
953
  errMsg: string;
717
954
  errNo?: number | undefined;
718
955
  }>) | undefined) => Promise<{
719
956
  errMsg: string;
957
+ name: string;
958
+ address: string;
959
+ latitude: number;
960
+ longitude: number;
720
961
  }>;
721
- export declare const saveImageToPhotosAlbum: (arg?: ({
722
- filePath: string;
962
+ export declare const openLocation: (arg?: ({
963
+ latitude: number;
964
+ longitude: number;
965
+ scale?: number | undefined;
966
+ name?: string | undefined;
967
+ address?: string | undefined;
723
968
  success?: ((res: {
724
969
  errMsg: string;
725
970
  }) => void) | undefined;
@@ -741,10 +986,16 @@ export declare const saveImageToPhotosAlbum: (arg?: ({
741
986
  }>) | undefined) => Promise<{
742
987
  errMsg: string;
743
988
  }>;
744
- export declare const previewImage: (arg?: ({
745
- urls: string[];
746
- current?: string | undefined;
747
- showmenu?: boolean | undefined;
989
+ export declare const startLocationUpdate: (arg?: any) => Promise<any>;
990
+ export declare const stopLocationUpdate: (arg?: any) => Promise<any>;
991
+ export declare const onLocationChange: any;
992
+ export declare const offLocationChange: any;
993
+ export declare const onLocationChangeError: any;
994
+ export declare const offLocationChangeError: any;
995
+ export declare const getNetworkType: (arg?: any) => Promise<any>;
996
+ export declare const onNetworkStatusChange: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: import("@douyin-microapp/typings/api/network-status").Callback], void>;
997
+ export declare const offNetworkStatusChange: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: import("@douyin-microapp/typings/api/network-status").Callback], void>;
998
+ export declare const getWifiList: (arg?: ({
748
999
  success?: ((res: {
749
1000
  errMsg: string;
750
1001
  }) => void) | undefined;
@@ -766,15 +1017,37 @@ export declare const previewImage: (arg?: ({
766
1017
  }>) | undefined) => Promise<{
767
1018
  errMsg: string;
768
1019
  }>;
769
- export declare const getImageInfo: (arg?: ({
770
- src: string;
1020
+ export declare const onGetWifiList: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: (wifiList: {
1021
+ SSID: string;
1022
+ BSSID: string;
1023
+ secure: boolean;
1024
+ signalStrength: number;
1025
+ }[]) => void], void>;
1026
+ export declare const onNetworkWeakChange: any;
1027
+ export declare const getSystemInfo: (arg?: ({
771
1028
  success?: ((res: {
772
1029
  errMsg: string;
773
- width: number;
774
- height: number;
775
- type: string;
776
- path: string;
777
- orientation: string;
1030
+ system: string;
1031
+ platform: string;
1032
+ brand: string;
1033
+ model: string;
1034
+ version: string;
1035
+ appName: string;
1036
+ SDKVersion: string;
1037
+ screenWidth: number;
1038
+ screenHeight: number;
1039
+ windowWidth: number;
1040
+ windowHeight: number;
1041
+ pixelRatio: number;
1042
+ statusBarHeight: number;
1043
+ safeArea: {
1044
+ left: number;
1045
+ right: number;
1046
+ top: number;
1047
+ bottom: number;
1048
+ width: number;
1049
+ height: number;
1050
+ };
778
1051
  }) => void) | undefined;
779
1052
  fail?: ((res: {
780
1053
  errMsg: string;
@@ -782,44 +1055,90 @@ export declare const getImageInfo: (arg?: ({
782
1055
  }) => void) | undefined;
783
1056
  complete?: ((res: Partial<{
784
1057
  errMsg: string;
785
- width: number;
786
- height: number;
787
- type: string;
788
- path: string;
789
- orientation: string;
1058
+ system: string;
1059
+ platform: string;
1060
+ brand: string;
1061
+ model: string;
1062
+ version: string;
1063
+ appName: string;
1064
+ SDKVersion: string;
1065
+ screenWidth: number;
1066
+ screenHeight: number;
1067
+ windowWidth: number;
1068
+ windowHeight: number;
1069
+ pixelRatio: number;
1070
+ statusBarHeight: number;
1071
+ safeArea: {
1072
+ left: number;
1073
+ right: number;
1074
+ top: number;
1075
+ bottom: number;
1076
+ width: number;
1077
+ height: number;
1078
+ };
790
1079
  }> & {
791
1080
  errMsg: string;
792
1081
  errNo?: number | undefined;
793
1082
  }) => void) | undefined;
794
1083
  } & import("@rsmax/framework-shared").PromisifyArgs<{
795
1084
  errMsg: string;
796
- width: number;
797
- height: number;
798
- type: string;
799
- path: string;
800
- orientation: string;
1085
+ system: string;
1086
+ platform: string;
1087
+ brand: string;
1088
+ model: string;
1089
+ version: string;
1090
+ appName: string;
1091
+ SDKVersion: string;
1092
+ screenWidth: number;
1093
+ screenHeight: number;
1094
+ windowWidth: number;
1095
+ windowHeight: number;
1096
+ pixelRatio: number;
1097
+ statusBarHeight: number;
1098
+ safeArea: {
1099
+ left: number;
1100
+ right: number;
1101
+ top: number;
1102
+ bottom: number;
1103
+ width: number;
1104
+ height: number;
1105
+ };
801
1106
  }, {
802
1107
  errMsg: string;
803
1108
  errNo?: number | undefined;
804
1109
  }>) | undefined) => Promise<{
805
1110
  errMsg: string;
806
- width: number;
807
- height: number;
808
- type: string;
809
- path: string;
810
- orientation: string;
1111
+ system: string;
1112
+ platform: string;
1113
+ brand: string;
1114
+ model: string;
1115
+ version: string;
1116
+ appName: string;
1117
+ SDKVersion: string;
1118
+ screenWidth: number;
1119
+ screenHeight: number;
1120
+ windowWidth: number;
1121
+ windowHeight: number;
1122
+ pixelRatio: number;
1123
+ statusBarHeight: number;
1124
+ safeArea: {
1125
+ left: number;
1126
+ right: number;
1127
+ top: number;
1128
+ bottom: number;
1129
+ width: number;
1130
+ height: number;
1131
+ };
811
1132
  }>;
812
- export declare const chooseImage: (arg?: ({
813
- count: number;
814
- sourceType: import("@douyin-microapp/typings/api/choose-image").SourceType[];
815
- sizeType: import("@douyin-microapp/typings/api/choose-image").SizeType[];
1133
+ export declare const getDeviceInfoSync: any;
1134
+ export declare const getSystemInfoSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/system-info").SystemInfo>;
1135
+ export declare const getConnectedWifi: (arg?: ({
816
1136
  success?: ((res: {
817
1137
  errMsg: string;
818
- tempFilePaths: string;
819
- tempFiles: {
820
- path: string;
821
- size: number;
822
- }[];
1138
+ SSID: string;
1139
+ BSSID: string;
1140
+ secure: boolean;
1141
+ signalStrength: number;
823
1142
  }) => void) | undefined;
824
1143
  fail?: ((res: {
825
1144
  errMsg: string;
@@ -827,42 +1146,31 @@ export declare const chooseImage: (arg?: ({
827
1146
  }) => void) | undefined;
828
1147
  complete?: ((res: Partial<{
829
1148
  errMsg: string;
830
- tempFilePaths: string;
831
- tempFiles: {
832
- path: string;
833
- size: number;
834
- }[];
1149
+ SSID: string;
1150
+ BSSID: string;
1151
+ secure: boolean;
1152
+ signalStrength: number;
835
1153
  }> & {
836
1154
  errMsg: string;
837
1155
  errNo?: number | undefined;
838
1156
  }) => void) | undefined;
839
1157
  } & import("@rsmax/framework-shared").PromisifyArgs<{
840
1158
  errMsg: string;
841
- tempFilePaths: string;
842
- tempFiles: {
843
- path: string;
844
- size: number;
845
- }[];
1159
+ SSID: string;
1160
+ BSSID: string;
1161
+ secure: boolean;
1162
+ signalStrength: number;
846
1163
  }, {
847
1164
  errMsg: string;
848
1165
  errNo?: number | undefined;
849
1166
  }>) | undefined) => Promise<{
850
1167
  errMsg: string;
851
- tempFilePaths: string;
852
- tempFiles: {
853
- path: string;
854
- size: number;
855
- }[];
1168
+ SSID: string;
1169
+ BSSID: string;
1170
+ secure: boolean;
1171
+ signalStrength: number;
856
1172
  }>;
857
- export declare const saveVideoToPhotosAlbum: (arg?: any) => Promise<any>;
858
- export declare const createVideoContext: import("@douyin-microapp/typings/api/types").SyncAPI<[id: string, component?: object | undefined], import("@douyin-microapp/typings/api/video-context").VideoContext>;
859
- export declare const chooseVideo: (arg?: any) => Promise<any>;
860
- export declare const openLocation: (arg?: ({
861
- latitude: number;
862
- longitude: number;
863
- scale?: number | undefined;
864
- name?: string | undefined;
865
- address?: string | undefined;
1173
+ export declare const startAccelerometer: (arg?: ({
866
1174
  success?: ((res: {
867
1175
  errMsg: string;
868
1176
  }) => void) | undefined;
@@ -884,19 +1192,9 @@ export declare const openLocation: (arg?: ({
884
1192
  }>) | undefined) => Promise<{
885
1193
  errMsg: string;
886
1194
  }>;
887
- export declare const getLocation: (arg?: ({
888
- type?: "wgs84" | "gcj02" | undefined;
889
- isHighAccuracy?: boolean | undefined;
1195
+ export declare const stopAccelerometer: (arg?: ({
890
1196
  success?: ((res: {
891
1197
  errMsg: string;
892
- latitude: number;
893
- longitude: number;
894
- altitude: number;
895
- accuracy: number;
896
- verticalAccuracy: number;
897
- horizontalAccuracy: number;
898
- speed: number;
899
- city: string;
900
1198
  }) => void) | undefined;
901
1199
  fail?: ((res: {
902
1200
  errMsg: string;
@@ -904,44 +1202,25 @@ export declare const getLocation: (arg?: ({
904
1202
  }) => void) | undefined;
905
1203
  complete?: ((res: Partial<{
906
1204
  errMsg: string;
907
- latitude: number;
908
- longitude: number;
909
- altitude: number;
910
- accuracy: number;
911
- verticalAccuracy: number;
912
- horizontalAccuracy: number;
913
- speed: number;
914
- city: string;
915
1205
  }> & {
916
1206
  errMsg: string;
917
1207
  errNo?: number | undefined;
918
1208
  }) => void) | undefined;
919
1209
  } & import("@rsmax/framework-shared").PromisifyArgs<{
920
1210
  errMsg: string;
921
- latitude: number;
922
- longitude: number;
923
- altitude: number;
924
- accuracy: number;
925
- verticalAccuracy: number;
926
- horizontalAccuracy: number;
927
- speed: number;
928
- city: string;
929
1211
  }, {
930
1212
  errMsg: string;
931
1213
  errNo?: number | undefined;
932
1214
  }>) | undefined) => Promise<{
933
1215
  errMsg: string;
934
- latitude: number;
935
- longitude: number;
936
- altitude: number;
937
- accuracy: number;
938
- verticalAccuracy: number;
939
- horizontalAccuracy: number;
940
- speed: number;
941
- city: string;
942
1216
  }>;
943
- export declare const showShareMenu: (arg?: ({
944
- menus?: ("share" | "record")[] | undefined;
1217
+ export declare const onAccelerometerChange: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: (res: {
1218
+ x: number;
1219
+ y: number;
1220
+ z: number;
1221
+ }) => void], void>;
1222
+ export declare const offAccelerometerChange: any;
1223
+ export declare const startCompass: (arg?: ({
945
1224
  success?: ((res: {
946
1225
  errMsg: string;
947
1226
  }) => void) | undefined;
@@ -963,8 +1242,7 @@ export declare const showShareMenu: (arg?: ({
963
1242
  }>) | undefined) => Promise<{
964
1243
  errMsg: string;
965
1244
  }>;
966
- export declare const hideShareMenu: (arg?: ({
967
- menus?: ("share" | "record")[] | undefined;
1245
+ export declare const stopCompass: (arg?: ({
968
1246
  success?: ((res: {
969
1247
  errMsg: string;
970
1248
  }) => void) | undefined;
@@ -986,8 +1264,12 @@ export declare const hideShareMenu: (arg?: ({
986
1264
  }>) | undefined) => Promise<{
987
1265
  errMsg: string;
988
1266
  }>;
989
- export declare const navigateToVideoView: (arg?: ({
990
- videoId: string;
1267
+ export declare const onCompassChange: import("@douyin-microapp/typings/api/types").SyncAPI<[(res: {
1268
+ direction?: number | undefined;
1269
+ }) => void], void>;
1270
+ export declare const offCompassChange: import("@douyin-microapp/typings/api/types").SyncAPI<[(...args: any[]) => void], void>;
1271
+ export declare const makePhoneCall: (arg?: ({
1272
+ phoneNumber: string;
991
1273
  success?: ((res: {
992
1274
  errMsg: string;
993
1275
  }) => void) | undefined;
@@ -1009,13 +1291,10 @@ export declare const navigateToVideoView: (arg?: ({
1009
1291
  }>) | undefined) => Promise<{
1010
1292
  errMsg: string;
1011
1293
  }>;
1012
- export declare const createCanvasContext: import("@douyin-microapp/typings/api/types").SyncAPI<[canvasId: string], import("@douyin-microapp/typings/api/webcanvas").CanvasContext>;
1013
- export declare const saveFile: (arg?: ({
1014
- tempFilePath: string;
1015
- filePath?: string | undefined;
1294
+ export declare const scanCode: (arg?: ({
1016
1295
  success?: ((res: {
1017
1296
  errMsg: string;
1018
- savedFilePath: string;
1297
+ result: string;
1019
1298
  }) => void) | undefined;
1020
1299
  fail?: ((res: {
1021
1300
  errMsg: string;
@@ -1023,25 +1302,25 @@ export declare const saveFile: (arg?: ({
1023
1302
  }) => void) | undefined;
1024
1303
  complete?: ((res: Partial<{
1025
1304
  errMsg: string;
1026
- savedFilePath: string;
1305
+ result: string;
1027
1306
  }> & {
1028
1307
  errMsg: string;
1029
1308
  errNo?: number | undefined;
1030
1309
  }) => void) | undefined;
1031
1310
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1032
1311
  errMsg: string;
1033
- savedFilePath: string;
1312
+ result: string;
1034
1313
  }, {
1035
1314
  errMsg: string;
1036
1315
  errNo?: number | undefined;
1037
1316
  }>) | undefined) => Promise<{
1038
1317
  errMsg: string;
1039
- savedFilePath: string;
1318
+ result: string;
1040
1319
  }>;
1041
- export declare const removeSavedFile: (arg?: ({
1042
- filePath: string;
1320
+ export declare const getClipboardData: (arg?: ({
1043
1321
  success?: ((res: {
1044
1322
  errMsg: string;
1323
+ data: string;
1045
1324
  }) => void) | undefined;
1046
1325
  fail?: ((res: {
1047
1326
  errMsg: string;
@@ -1049,193 +1328,48 @@ export declare const removeSavedFile: (arg?: ({
1049
1328
  }) => void) | undefined;
1050
1329
  complete?: ((res: Partial<{
1051
1330
  errMsg: string;
1331
+ data: string;
1052
1332
  }> & {
1053
1333
  errMsg: string;
1054
1334
  errNo?: number | undefined;
1055
1335
  }) => void) | undefined;
1056
1336
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1057
1337
  errMsg: string;
1338
+ data: string;
1058
1339
  }, {
1059
1340
  errMsg: string;
1060
1341
  errNo?: number | undefined;
1061
1342
  }>) | undefined) => Promise<{
1062
1343
  errMsg: string;
1344
+ data: string;
1063
1345
  }>;
1064
- export declare const openDocument: (arg?: any) => Promise<any>;
1065
- export declare const getSavedFileList: import("@douyin-microapp/typings/api/fs").GetSavedFileList;
1066
- export declare const getFileSystemManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
1067
- readFile: import("@douyin-microapp/typings/api/fs").ReadFile;
1068
- readFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, encoding?: string | undefined, position?: number | undefined, length?: number | undefined], string>;
1069
- writeFile: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1070
- filePath: string;
1071
- data: string;
1072
- encoding: import("@douyin-microapp/typings/api/fs").encoding;
1073
- }, {}, {
1346
+ export declare const setClipboardData: (arg?: ({
1347
+ data: string;
1348
+ success?: ((res: {
1074
1349
  errMsg: string;
1075
- }, {
1350
+ }) => void) | undefined;
1351
+ fail?: ((res: {
1076
1352
  errMsg: string;
1077
1353
  errNo?: number | undefined;
1078
- }>;
1079
- writeFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, data: string, encoding: import("@douyin-microapp/typings/api/fs").encoding], void>;
1080
- mkdir: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1081
- dirPath: string;
1082
- recursive?: boolean | undefined;
1083
- }, {}, {
1354
+ }) => void) | undefined;
1355
+ complete?: ((res: Partial<{
1084
1356
  errMsg: string;
1085
- }, {
1357
+ }> & {
1086
1358
  errMsg: string;
1087
1359
  errNo?: number | undefined;
1088
- }>;
1089
- mkdirSync: import("@douyin-microapp/typings/api/types").SyncAPI<[dirPath: string, recursive?: boolean | undefined], void>;
1090
- readdir: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1091
- dirPath: string;
1092
- }, {
1093
- files: string[];
1094
- }, {
1095
- errMsg: string;
1096
- files: string[];
1097
- }, {
1098
- errMsg: string;
1099
- errNo?: number | undefined;
1100
- }>;
1101
- readdirSync: import("@douyin-microapp/typings/api/types").SyncAPI<[dirPath: string], string[]>;
1102
- rmdir: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1103
- dirPath: string;
1104
- recursive?: boolean | undefined;
1105
- }, {}, {
1106
- errMsg: string;
1107
- }, {
1108
- errMsg: string;
1109
- errNo?: number | undefined;
1110
- }>;
1111
- rmdirSync: import("@douyin-microapp/typings/api/types").SyncAPI<[dirPath: string, recursive?: boolean | undefined], void>;
1112
- access: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1113
- path: string;
1114
- }, {}, {
1115
- errMsg: string;
1116
- }, {
1117
- errMsg: string;
1118
- errNo?: number | undefined;
1119
- }>;
1120
- accessSync: import("@douyin-microapp/typings/api/types").SyncAPI<[path: string], void>;
1121
- unlink: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1122
- filePath: string;
1123
- }, {}, {
1124
- errMsg: string;
1125
- }, {
1126
- errMsg: string;
1127
- errNo?: number | undefined;
1128
- }>;
1129
- unlinkSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string], void>;
1130
- stat: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1131
- path: string;
1132
- recursive?: boolean | undefined;
1133
- }, {
1134
- stat: import("@douyin-microapp/typings/api/fs").Stat;
1135
- stats: import("@douyin-microapp/typings/api/fs").Stat | {
1136
- path: string;
1137
- stat: import("@douyin-microapp/typings/api/fs").Stat;
1138
- }[];
1139
- }, {
1140
- errMsg: string;
1141
- stat: {
1142
- mode: string;
1143
- size: number;
1144
- lastAccessedTime: number;
1145
- lastModifiedTime: number;
1146
- isDirectory: () => {};
1147
- isFile: () => {};
1148
- };
1149
- stats: {
1150
- mode: string;
1151
- size: number;
1152
- lastAccessedTime: number;
1153
- lastModifiedTime: number;
1154
- isDirectory: () => {};
1155
- isFile: () => {};
1156
- } | {
1157
- path: string;
1158
- stat: {
1159
- mode: string;
1160
- size: number;
1161
- lastAccessedTime: number;
1162
- lastModifiedTime: number;
1163
- isDirectory: () => {};
1164
- isFile: () => {};
1165
- };
1166
- }[];
1167
- }, {
1168
- errMsg: string;
1169
- errNo?: number | undefined;
1170
- }>;
1171
- statSync: import("@douyin-microapp/typings/api/types").SyncAPI<[path: string, recursive?: boolean | undefined], import("@douyin-microapp/typings/api/fs").Stat | {
1172
- path: string;
1173
- stat: import("@douyin-microapp/typings/api/fs").Stat;
1174
- }[]>;
1175
- rename: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1176
- oldPath: string;
1177
- newPath: string;
1178
- }, {}, {
1179
- errMsg: string;
1180
- }, {
1181
- errMsg: string;
1182
- errNo?: number | undefined;
1183
- }>;
1184
- renameSync: import("@douyin-microapp/typings/api/types").SyncAPI<[oldPath: string, newPath: string], void>;
1185
- copyFile: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1186
- srcPath: string;
1187
- destPath: string;
1188
- }, {}, {
1189
- errMsg: string;
1190
- }, {
1191
- errMsg: string;
1192
- errNo?: number | undefined;
1193
- }>;
1194
- copyFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[srcPath: string, destPath: string], void>;
1195
- unzip: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1196
- zipFilePath: string;
1197
- targetPath: string;
1198
- }, {}, {
1199
- errMsg: string;
1200
- }, {
1201
- errMsg: string;
1202
- errNo?: number | undefined;
1203
- }>;
1204
- saveFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[tempFilePath: string, filePath?: string | undefined], string>;
1205
- saveFile: import("@douyin-microapp/typings/api/fs").SaveFile;
1206
- getFileInfo: import("@douyin-microapp/typings/api/fs").GetFileInfo;
1207
- getSavedFileList: import("@douyin-microapp/typings/api/fs").GetSavedFileList;
1208
- removeSavedFile: import("@douyin-microapp/typings/api/fs").RemoveSavedFile;
1209
- appendFile: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1210
- filePath: string;
1211
- data: string | ArrayBuffer;
1212
- encoding: import("@douyin-microapp/typings/api/fs").encoding;
1213
- }, {}, {
1214
- errMsg: string;
1215
- }, {
1216
- errMsg: string;
1217
- errNo?: number | undefined;
1218
- }>;
1219
- appendFileSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, data: string | ArrayBuffer, encoding: import("@douyin-microapp/typings/api/fs").encoding], void>;
1220
- truncate: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1221
- filePath: string;
1222
- length: number;
1223
- }, {}, {
1224
- errMsg: string;
1225
- }, {
1226
- errMsg: string;
1227
- errNo?: number | undefined;
1228
- }>;
1229
- truncateSync: import("@douyin-microapp/typings/api/types").SyncAPI<[filePath: string, length: number], void>;
1360
+ }) => void) | undefined;
1361
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1362
+ errMsg: string;
1363
+ }, {
1364
+ errMsg: string;
1365
+ errNo?: number | undefined;
1366
+ }>) | undefined) => Promise<{
1367
+ errMsg: string;
1230
1368
  }>;
1231
- export declare const getFileInfo: import("@douyin-microapp/typings/api/fs").GetFileInfo;
1232
- export declare const login: (arg?: ({
1233
- force?: boolean | undefined;
1369
+ export declare const setKeepScreenOn: (arg?: ({
1370
+ keepScreenOn: boolean;
1234
1371
  success?: ((res: {
1235
1372
  errMsg: string;
1236
- code: string;
1237
- anonymousCode: string;
1238
- isLogin: boolean;
1239
1373
  }) => void) | undefined;
1240
1374
  fail?: ((res: {
1241
1375
  errMsg: string;
@@ -1243,48 +1377,31 @@ export declare const login: (arg?: ({
1243
1377
  }) => void) | undefined;
1244
1378
  complete?: ((res: Partial<{
1245
1379
  errMsg: string;
1246
- code: string;
1247
- anonymousCode: string;
1248
- isLogin: boolean;
1249
1380
  }> & {
1250
1381
  errMsg: string;
1251
1382
  errNo?: number | undefined;
1252
1383
  }) => void) | undefined;
1253
1384
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1254
1385
  errMsg: string;
1255
- code: string;
1256
- anonymousCode: string;
1257
- isLogin: boolean;
1258
1386
  }, {
1259
1387
  errMsg: string;
1260
1388
  errNo?: number | undefined;
1261
1389
  }>) | undefined) => Promise<{
1262
1390
  errMsg: string;
1263
- code: string;
1264
- anonymousCode: string;
1265
- isLogin: boolean;
1266
1391
  }>;
1267
- export declare const checkSession: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {}, {
1268
- errMsg: string;
1392
+ export declare const onUserCaptureScreen: import("@douyin-microapp/typings/api/types").SyncAPI<[() => void], void>;
1393
+ export declare const offUserCaptureScreen: import("@douyin-microapp/typings/api/types").SyncAPI<[() => void], void>;
1394
+ export declare const getScreenBrightness: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {
1395
+ value: number;
1269
1396
  }, {
1270
1397
  errMsg: string;
1271
- errNo?: number | undefined;
1272
- }>;
1273
- export declare const navigateToMiniProgram: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1274
- appId: string;
1275
- path?: string | undefined;
1276
- extraData?: object | undefined;
1277
- envVersion?: "current" | "latest" | undefined;
1278
- }, {}, {
1279
- errMsg: string;
1398
+ value: number;
1280
1399
  }, {
1281
1400
  errMsg: string;
1282
1401
  errNo?: number | undefined;
1283
1402
  }>;
1284
- export declare const navigateBackMiniProgram: (arg?: ({
1285
- extraData?: {
1286
- [x: string]: unknown;
1287
- } | undefined;
1403
+ export declare const setScreenBrightness: (arg?: ({
1404
+ value: number;
1288
1405
  success?: ((res: {
1289
1406
  errMsg: string;
1290
1407
  }) => void) | undefined;
@@ -1306,23 +1423,20 @@ export declare const navigateBackMiniProgram: (arg?: ({
1306
1423
  }>) | undefined) => Promise<{
1307
1424
  errMsg: string;
1308
1425
  }>;
1309
- export declare const getUserInfo: (arg?: ({
1310
- withCredentials?: boolean | undefined;
1426
+ export declare const onUserScreenRecord: any;
1427
+ export declare const offUserScreenRecord: any;
1428
+ export declare const enableUserScreenRecord: (arg?: any) => Promise<any>;
1429
+ export declare const disableUserScreenRecord: (arg?: any) => Promise<any>;
1430
+ export declare const startGyroscope: (arg?: any) => Promise<any>;
1431
+ export declare const stopGyroscope: (arg?: any) => Promise<any>;
1432
+ export declare const onGyroscopeChange: any;
1433
+ export declare const offGyroscopeChange: any;
1434
+ export declare const getRandomValues: (arg?: any) => Promise<any>;
1435
+ export declare const sendSms: (arg?: any) => Promise<any>;
1436
+ export declare const deleteCalendarEvent: (arg?: any) => Promise<any>;
1437
+ export declare const vibrateShort: (arg?: ({
1311
1438
  success?: ((res: {
1312
1439
  errMsg: string;
1313
- rawData: string;
1314
- userInfo: {
1315
- avatarUrl: string;
1316
- nickName: string;
1317
- gender: number;
1318
- city: string;
1319
- province: string;
1320
- country: string;
1321
- language: string;
1322
- };
1323
- signature?: string | undefined;
1324
- encryptedData?: string | undefined;
1325
- iv?: string | undefined;
1326
1440
  }) => void) | undefined;
1327
1441
  fail?: ((res: {
1328
1442
  errMsg: string;
@@ -1330,68 +1444,21 @@ export declare const getUserInfo: (arg?: ({
1330
1444
  }) => void) | undefined;
1331
1445
  complete?: ((res: Partial<{
1332
1446
  errMsg: string;
1333
- rawData: string;
1334
- userInfo: {
1335
- avatarUrl: string;
1336
- nickName: string;
1337
- gender: number;
1338
- city: string;
1339
- province: string;
1340
- country: string;
1341
- language: string;
1342
- };
1343
- signature?: string | undefined;
1344
- encryptedData?: string | undefined;
1345
- iv?: string | undefined;
1346
1447
  }> & {
1347
1448
  errMsg: string;
1348
1449
  errNo?: number | undefined;
1349
1450
  }) => void) | undefined;
1350
1451
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1351
1452
  errMsg: string;
1352
- rawData: string;
1353
- userInfo: {
1354
- avatarUrl: string;
1355
- nickName: string;
1356
- gender: number;
1357
- city: string;
1358
- province: string;
1359
- country: string;
1360
- language: string;
1361
- };
1362
- signature?: string | undefined;
1363
- encryptedData?: string | undefined;
1364
- iv?: string | undefined;
1365
1453
  }, {
1366
1454
  errMsg: string;
1367
1455
  errNo?: number | undefined;
1368
1456
  }>) | undefined) => Promise<{
1369
1457
  errMsg: string;
1370
- rawData: string;
1371
- userInfo: {
1372
- avatarUrl: string;
1373
- nickName: string;
1374
- gender: number;
1375
- city: string;
1376
- province: string;
1377
- country: string;
1378
- language: string;
1379
- };
1380
- signature?: string | undefined;
1381
- encryptedData?: string | undefined;
1382
- iv?: string | undefined;
1383
1458
  }>;
1384
- export declare const reportAnalytics: import("@douyin-microapp/typings/api/types").SyncAPI<[name: string, data: Record<string, unknown>], void>;
1385
- export declare const Pay: (arg?: ({
1386
- orderInfo: {
1387
- order_id: string;
1388
- order_token: string;
1389
- };
1390
- _debug?: 0 | 1 | undefined;
1391
- service: 5;
1459
+ export declare const vibrateLong: (arg?: ({
1392
1460
  success?: ((res: {
1393
1461
  errMsg: string;
1394
- code: number;
1395
1462
  }) => void) | undefined;
1396
1463
  fail?: ((res: {
1397
1464
  errMsg: string;
@@ -1399,55 +1466,70 @@ export declare const Pay: (arg?: ({
1399
1466
  }) => void) | undefined;
1400
1467
  complete?: ((res: Partial<{
1401
1468
  errMsg: string;
1402
- code: number;
1403
1469
  }> & {
1404
1470
  errMsg: string;
1405
1471
  errNo?: number | undefined;
1406
1472
  }) => void) | undefined;
1407
1473
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1408
1474
  errMsg: string;
1409
- code: number;
1410
1475
  }, {
1411
1476
  errMsg: string;
1412
1477
  errNo?: number | undefined;
1413
1478
  }>) | undefined) => Promise<{
1414
1479
  errMsg: string;
1415
- code: number;
1416
1480
  }>;
1417
- export declare const pay: (arg?: ({
1418
- orderInfo: {
1419
- order_id: string;
1420
- order_token: string;
1421
- };
1422
- _debug?: 0 | 1 | undefined;
1423
- service: 5;
1424
- success?: ((res: {
1425
- errMsg: string;
1426
- code: number;
1427
- }) => void) | undefined;
1481
+ export declare const onMemoryWarning: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: (res: {
1482
+ level?: number | undefined;
1483
+ }) => void], void>;
1484
+ export declare const createCanvasContext: import("@douyin-microapp/typings/api/types").SyncAPI<[canvasId: string], import("@douyin-microapp/typings/api/webcanvas").CanvasContext>;
1485
+ export declare const canvasToTempFilePath: import("@douyin-microapp/typings/api/types").AsyncAPI<{
1486
+ canvasId: string;
1487
+ x?: number | undefined;
1488
+ y?: number | undefined;
1489
+ width?: number | undefined;
1490
+ height?: number | undefined;
1491
+ destWidth?: number | undefined;
1492
+ destHeight?: number | undefined;
1493
+ }, {
1494
+ tempFilePath: string;
1495
+ }, {
1496
+ errMsg: string;
1497
+ tempFilePath: string;
1498
+ }, {
1499
+ errMsg: string;
1500
+ errNo?: number | undefined;
1501
+ }>;
1502
+ export declare const createOffscreenCanvas: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/create-offscreen-canvas").OffscreenCanvas>;
1503
+ export declare const enableAlertBeforeUnload: (arg?: any) => Promise<any>;
1504
+ export declare const showToast: (arg?: ({
1505
+ title: string;
1506
+ icon?: "none" | "success" | "loading" | "fail" | undefined;
1507
+ duration?: number | undefined;
1508
+ mask?: boolean | undefined;
1509
+ success?: ((res: {
1510
+ errMsg: string;
1511
+ }) => void) | undefined;
1428
1512
  fail?: ((res: {
1429
1513
  errMsg: string;
1430
1514
  errNo?: number | undefined;
1431
1515
  }) => void) | undefined;
1432
1516
  complete?: ((res: Partial<{
1433
1517
  errMsg: string;
1434
- code: number;
1435
1518
  }> & {
1436
1519
  errMsg: string;
1437
1520
  errNo?: number | undefined;
1438
1521
  }) => void) | undefined;
1439
1522
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1440
1523
  errMsg: string;
1441
- code: number;
1442
1524
  }, {
1443
1525
  errMsg: string;
1444
1526
  errNo?: number | undefined;
1445
1527
  }>) | undefined) => Promise<{
1446
1528
  errMsg: string;
1447
- code: number;
1448
1529
  }>;
1449
- export declare const authorize: (arg?: ({
1450
- scope: string;
1530
+ export declare const showLoading: (arg?: ({
1531
+ title: string;
1532
+ mask?: boolean | undefined;
1451
1533
  success?: ((res: {
1452
1534
  errMsg: string;
1453
1535
  }) => void) | undefined;
@@ -1469,34 +1551,9 @@ export declare const authorize: (arg?: ({
1469
1551
  }>) | undefined) => Promise<{
1470
1552
  errMsg: string;
1471
1553
  }>;
1472
- export declare const openSetting: (arg?: ({
1473
- withSubscriptions?: boolean | undefined;
1554
+ export declare const hideToast: (arg?: ({
1474
1555
  success?: ((res: {
1475
1556
  errMsg: string;
1476
- authSetting: {
1477
- "scope.userInfo"?: boolean | undefined;
1478
- "scope.userLocation"?: boolean | undefined;
1479
- "scope.address"?: boolean | undefined;
1480
- "scope.record"?: boolean | undefined;
1481
- "scope.album"?: boolean | undefined;
1482
- "scope.camera"?: boolean | undefined;
1483
- };
1484
- subscriptionsSetting?: {
1485
- mainSwitch: boolean;
1486
- itemSettings: {
1487
- [x: string]: "accept" | "reject";
1488
- };
1489
- templateSettings: {
1490
- [x: string]: {
1491
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1492
- alwaysSubscribe: boolean;
1493
- allowReminderWay: {
1494
- reminderType: "message_notice" | "feed" | "push";
1495
- reminderStatus: "accept" | "reject";
1496
- }[];
1497
- };
1498
- };
1499
- } | undefined;
1500
1557
  }) => void) | undefined;
1501
1558
  fail?: ((res: {
1502
1559
  errMsg: string;
@@ -1504,118 +1561,21 @@ export declare const openSetting: (arg?: ({
1504
1561
  }) => void) | undefined;
1505
1562
  complete?: ((res: Partial<{
1506
1563
  errMsg: string;
1507
- authSetting: {
1508
- "scope.userInfo"?: boolean | undefined;
1509
- "scope.userLocation"?: boolean | undefined;
1510
- "scope.address"?: boolean | undefined;
1511
- "scope.record"?: boolean | undefined;
1512
- "scope.album"?: boolean | undefined;
1513
- "scope.camera"?: boolean | undefined;
1514
- };
1515
- subscriptionsSetting?: {
1516
- mainSwitch: boolean;
1517
- itemSettings: {
1518
- [x: string]: "accept" | "reject";
1519
- };
1520
- templateSettings: {
1521
- [x: string]: {
1522
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1523
- alwaysSubscribe: boolean;
1524
- allowReminderWay: {
1525
- reminderType: "message_notice" | "feed" | "push";
1526
- reminderStatus: "accept" | "reject";
1527
- }[];
1528
- };
1529
- };
1530
- } | undefined;
1531
1564
  }> & {
1532
1565
  errMsg: string;
1533
1566
  errNo?: number | undefined;
1534
1567
  }) => void) | undefined;
1535
1568
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1536
1569
  errMsg: string;
1537
- authSetting: {
1538
- "scope.userInfo"?: boolean | undefined;
1539
- "scope.userLocation"?: boolean | undefined;
1540
- "scope.address"?: boolean | undefined;
1541
- "scope.record"?: boolean | undefined;
1542
- "scope.album"?: boolean | undefined;
1543
- "scope.camera"?: boolean | undefined;
1544
- };
1545
- subscriptionsSetting?: {
1546
- mainSwitch: boolean;
1547
- itemSettings: {
1548
- [x: string]: "accept" | "reject";
1549
- };
1550
- templateSettings: {
1551
- [x: string]: {
1552
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1553
- alwaysSubscribe: boolean;
1554
- allowReminderWay: {
1555
- reminderType: "message_notice" | "feed" | "push";
1556
- reminderStatus: "accept" | "reject";
1557
- }[];
1558
- };
1559
- };
1560
- } | undefined;
1561
1570
  }, {
1562
1571
  errMsg: string;
1563
1572
  errNo?: number | undefined;
1564
1573
  }>) | undefined) => Promise<{
1565
1574
  errMsg: string;
1566
- authSetting: {
1567
- "scope.userInfo"?: boolean | undefined;
1568
- "scope.userLocation"?: boolean | undefined;
1569
- "scope.address"?: boolean | undefined;
1570
- "scope.record"?: boolean | undefined;
1571
- "scope.album"?: boolean | undefined;
1572
- "scope.camera"?: boolean | undefined;
1573
- };
1574
- subscriptionsSetting?: {
1575
- mainSwitch: boolean;
1576
- itemSettings: {
1577
- [x: string]: "accept" | "reject";
1578
- };
1579
- templateSettings: {
1580
- [x: string]: {
1581
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1582
- alwaysSubscribe: boolean;
1583
- allowReminderWay: {
1584
- reminderType: "message_notice" | "feed" | "push";
1585
- reminderStatus: "accept" | "reject";
1586
- }[];
1587
- };
1588
- };
1589
- } | undefined;
1590
1575
  }>;
1591
- export declare const getSetting: (arg?: ({
1592
- withSubscriptions?: boolean | undefined;
1576
+ export declare const hideLoading: (arg?: ({
1593
1577
  success?: ((res: {
1594
1578
  errMsg: string;
1595
- authSetting: {
1596
- "scope.userInfo"?: boolean | undefined;
1597
- "scope.userLocation"?: boolean | undefined;
1598
- "scope.address"?: boolean | undefined;
1599
- "scope.record"?: boolean | undefined;
1600
- "scope.album"?: boolean | undefined;
1601
- "scope.camera"?: boolean | undefined;
1602
- };
1603
- subscriptionsSetting?: {
1604
- mainSwitch: boolean;
1605
- itemSettings: {
1606
- [x: string]: "accept" | "reject";
1607
- };
1608
- templateSettings: {
1609
- [x: string]: {
1610
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1611
- alwaysSubscribe: boolean;
1612
- allowReminderWay: {
1613
- reminderType: "message_notice" | "feed" | "push";
1614
- reminderStatus: "accept" | "reject";
1615
- }[];
1616
- };
1617
- };
1618
- } | undefined;
1619
1579
  }) => void) | undefined;
1620
1580
  fail?: ((res: {
1621
1581
  errMsg: string;
@@ -1623,99 +1583,29 @@ export declare const getSetting: (arg?: ({
1623
1583
  }) => void) | undefined;
1624
1584
  complete?: ((res: Partial<{
1625
1585
  errMsg: string;
1626
- authSetting: {
1627
- "scope.userInfo"?: boolean | undefined;
1628
- "scope.userLocation"?: boolean | undefined;
1629
- "scope.address"?: boolean | undefined;
1630
- "scope.record"?: boolean | undefined;
1631
- "scope.album"?: boolean | undefined;
1632
- "scope.camera"?: boolean | undefined;
1633
- };
1634
- subscriptionsSetting?: {
1635
- mainSwitch: boolean;
1636
- itemSettings: {
1637
- [x: string]: "accept" | "reject";
1638
- };
1639
- templateSettings: {
1640
- [x: string]: {
1641
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1642
- alwaysSubscribe: boolean;
1643
- allowReminderWay: {
1644
- reminderType: "message_notice" | "feed" | "push";
1645
- reminderStatus: "accept" | "reject";
1646
- }[];
1647
- };
1648
- };
1649
- } | undefined;
1650
1586
  }> & {
1651
1587
  errMsg: string;
1652
1588
  errNo?: number | undefined;
1653
1589
  }) => void) | undefined;
1654
1590
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1655
1591
  errMsg: string;
1656
- authSetting: {
1657
- "scope.userInfo"?: boolean | undefined;
1658
- "scope.userLocation"?: boolean | undefined;
1659
- "scope.address"?: boolean | undefined;
1660
- "scope.record"?: boolean | undefined;
1661
- "scope.album"?: boolean | undefined;
1662
- "scope.camera"?: boolean | undefined;
1663
- };
1664
- subscriptionsSetting?: {
1665
- mainSwitch: boolean;
1666
- itemSettings: {
1667
- [x: string]: "accept" | "reject";
1668
- };
1669
- templateSettings: {
1670
- [x: string]: {
1671
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1672
- alwaysSubscribe: boolean;
1673
- allowReminderWay: {
1674
- reminderType: "message_notice" | "feed" | "push";
1675
- reminderStatus: "accept" | "reject";
1676
- }[];
1677
- };
1678
- };
1679
- } | undefined;
1680
1592
  }, {
1681
1593
  errMsg: string;
1682
1594
  errNo?: number | undefined;
1683
1595
  }>) | undefined) => Promise<{
1684
1596
  errMsg: string;
1685
- authSetting: {
1686
- "scope.userInfo"?: boolean | undefined;
1687
- "scope.userLocation"?: boolean | undefined;
1688
- "scope.address"?: boolean | undefined;
1689
- "scope.record"?: boolean | undefined;
1690
- "scope.album"?: boolean | undefined;
1691
- "scope.camera"?: boolean | undefined;
1692
- };
1693
- subscriptionsSetting?: {
1694
- mainSwitch: boolean;
1695
- itemSettings: {
1696
- [x: string]: "accept" | "reject";
1697
- };
1698
- templateSettings: {
1699
- [x: string]: {
1700
- status: "fail" | "accept" | "reject" | "repeat" | "limit";
1701
- alwaysSubscribe: boolean;
1702
- allowReminderWay: {
1703
- reminderType: "message_notice" | "feed" | "push";
1704
- reminderStatus: "accept" | "reject";
1705
- }[];
1706
- };
1707
- };
1708
- } | undefined;
1709
1597
  }>;
1710
- export declare const chooseAddress: (arg?: ({
1598
+ export declare const showModal: (arg?: ({
1599
+ title?: string | undefined;
1600
+ content?: string | undefined;
1601
+ confirmText?: string | undefined;
1602
+ showCancel?: boolean | undefined;
1603
+ cancelText?: string | undefined;
1711
1604
  success?: ((res: {
1712
1605
  errMsg: string;
1713
- userName: string;
1714
- provinceName: string;
1715
- cityName: string;
1716
- countyName: string;
1717
- detailInfo: string;
1718
- telNumber: string;
1606
+ confirm: boolean;
1607
+ cancel: boolean;
1608
+ content?: string | undefined;
1719
1609
  }) => void) | undefined;
1720
1610
  fail?: ((res: {
1721
1611
  errMsg: string;
@@ -1723,40 +1613,724 @@ export declare const chooseAddress: (arg?: ({
1723
1613
  }) => void) | undefined;
1724
1614
  complete?: ((res: Partial<{
1725
1615
  errMsg: string;
1726
- userName: string;
1727
- provinceName: string;
1728
- cityName: string;
1729
- countyName: string;
1730
- detailInfo: string;
1731
- telNumber: string;
1616
+ confirm: boolean;
1617
+ cancel: boolean;
1618
+ content?: string | undefined;
1619
+ }> & {
1620
+ errMsg: string;
1621
+ errNo?: number | undefined;
1622
+ }) => void) | undefined;
1623
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1624
+ errMsg: string;
1625
+ confirm: boolean;
1626
+ cancel: boolean;
1627
+ content?: string | undefined;
1628
+ }, {
1629
+ errMsg: string;
1630
+ errNo?: number | undefined;
1631
+ }>) | undefined) => Promise<{
1632
+ errMsg: string;
1633
+ confirm: boolean;
1634
+ cancel: boolean;
1635
+ content?: string | undefined;
1636
+ }>;
1637
+ export declare const showActionSheet: (arg?: any) => Promise<any>;
1638
+ export declare const showFavoriteGuide: (arg?: ({
1639
+ type?: string | undefined;
1640
+ content?: string | undefined;
1641
+ position?: string | undefined;
1642
+ success?: ((res: {
1643
+ errMsg: string;
1644
+ }) => void) | undefined;
1645
+ fail?: ((res: {
1646
+ errMsg: string;
1647
+ errNo?: number | undefined;
1648
+ }) => void) | undefined;
1649
+ complete?: ((res: Partial<{
1650
+ errMsg: string;
1651
+ }> & {
1652
+ errMsg: string;
1653
+ errNo?: number | undefined;
1654
+ }) => void) | undefined;
1655
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1656
+ errMsg: string;
1657
+ }, {
1658
+ errMsg: string;
1659
+ errNo?: number | undefined;
1660
+ }>) | undefined) => Promise<{
1661
+ errMsg: string;
1662
+ }>;
1663
+ export declare const showInteractionBar: (arg?: ({
1664
+ success?: ((res: {
1665
+ errMsg: string;
1666
+ }) => void) | undefined;
1667
+ fail?: ((res: {
1668
+ errMsg: string;
1669
+ errNo?: number | undefined;
1670
+ }) => void) | undefined;
1671
+ complete?: ((res: Partial<{
1672
+ errMsg: string;
1673
+ }> & {
1674
+ errMsg: string;
1675
+ errNo?: number | undefined;
1676
+ }) => void) | undefined;
1677
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1678
+ errMsg: string;
1679
+ }, {
1680
+ errMsg: string;
1681
+ errNo?: number | undefined;
1682
+ }>) | undefined) => Promise<{
1683
+ errMsg: string;
1684
+ }>;
1685
+ export declare const hideInteractionBar: (arg?: ({
1686
+ success?: ((res: {
1687
+ errMsg: string;
1688
+ }) => void) | undefined;
1689
+ fail?: ((res: {
1690
+ errMsg: string;
1691
+ errNo?: number | undefined;
1692
+ }) => void) | undefined;
1693
+ complete?: ((res: Partial<{
1694
+ errMsg: string;
1695
+ }> & {
1696
+ errMsg: string;
1697
+ errNo?: number | undefined;
1698
+ }) => void) | undefined;
1699
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1700
+ errMsg: string;
1701
+ }, {
1702
+ errMsg: string;
1703
+ errNo?: number | undefined;
1704
+ }>) | undefined) => Promise<{
1705
+ errMsg: string;
1706
+ }>;
1707
+ export declare const disableAlertBeforeUnload: (arg?: any) => Promise<any>;
1708
+ export declare const showNavigationBarLoading: (arg?: ({
1709
+ success?: ((res: {
1710
+ errMsg: string;
1711
+ }) => void) | undefined;
1712
+ fail?: ((res: {
1713
+ errMsg: string;
1714
+ errNo?: number | undefined;
1715
+ }) => void) | undefined;
1716
+ complete?: ((res: Partial<{
1717
+ errMsg: string;
1718
+ }> & {
1719
+ errMsg: string;
1720
+ errNo?: number | undefined;
1721
+ }) => void) | undefined;
1722
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1723
+ errMsg: string;
1724
+ }, {
1725
+ errMsg: string;
1726
+ errNo?: number | undefined;
1727
+ }>) | undefined) => Promise<{
1728
+ errMsg: string;
1729
+ }>;
1730
+ export declare const hideNavigationBarLoading: (arg?: ({
1731
+ success?: ((res: {
1732
+ errMsg: string;
1733
+ }) => void) | undefined;
1734
+ fail?: ((res: {
1735
+ errMsg: string;
1736
+ errNo?: number | undefined;
1737
+ }) => void) | undefined;
1738
+ complete?: ((res: Partial<{
1739
+ errMsg: string;
1740
+ }> & {
1741
+ errMsg: string;
1742
+ errNo?: number | undefined;
1743
+ }) => void) | undefined;
1744
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1745
+ errMsg: string;
1746
+ }, {
1747
+ errMsg: string;
1748
+ errNo?: number | undefined;
1749
+ }>) | undefined) => Promise<{
1750
+ errMsg: string;
1751
+ }>;
1752
+ export declare const hideHomeButton: (arg?: ({
1753
+ success?: ((res: {
1754
+ errMsg: string;
1755
+ }) => void) | undefined;
1756
+ fail?: ((res: {
1757
+ errMsg: string;
1758
+ errNo?: number | undefined;
1759
+ }) => void) | undefined;
1760
+ complete?: ((res: Partial<{
1761
+ errMsg: string;
1762
+ }> & {
1763
+ errMsg: string;
1764
+ errNo?: number | undefined;
1765
+ }) => void) | undefined;
1766
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1767
+ errMsg: string;
1768
+ }, {
1769
+ errMsg: string;
1770
+ errNo?: number | undefined;
1771
+ }>) | undefined) => Promise<{
1772
+ errMsg: string;
1773
+ }>;
1774
+ export declare const setNavigationBarTitle: (arg?: ({
1775
+ title: string;
1776
+ success?: ((res: {
1777
+ errMsg: string;
1778
+ }) => void) | undefined;
1779
+ fail?: ((res: {
1780
+ errMsg: string;
1781
+ errNo?: number | undefined;
1782
+ }) => void) | undefined;
1783
+ complete?: ((res: Partial<{
1784
+ errMsg: string;
1785
+ }> & {
1786
+ errMsg: string;
1787
+ errNo?: number | undefined;
1788
+ }) => void) | undefined;
1789
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1790
+ errMsg: string;
1791
+ }, {
1792
+ errMsg: string;
1793
+ errNo?: number | undefined;
1794
+ }>) | undefined) => Promise<{
1795
+ errMsg: string;
1796
+ }>;
1797
+ export declare const setNavigationBarColor: (arg?: ({
1798
+ frontColor: string;
1799
+ backgroundColor: string;
1800
+ success?: ((res: {
1801
+ errMsg: string;
1802
+ }) => void) | undefined;
1803
+ fail?: ((res: {
1804
+ errMsg: string;
1805
+ errNo?: number | undefined;
1806
+ }) => void) | undefined;
1807
+ complete?: ((res: Partial<{
1808
+ errMsg: string;
1809
+ }> & {
1810
+ errMsg: string;
1811
+ errNo?: number | undefined;
1812
+ }) => void) | undefined;
1813
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1814
+ errMsg: string;
1815
+ }, {
1816
+ errMsg: string;
1817
+ errNo?: number | undefined;
1818
+ }>) | undefined) => Promise<{
1819
+ errMsg: string;
1820
+ }>;
1821
+ export declare const getCustomButtonBoundingClientRect: any;
1822
+ export declare const getMenuButtonBoundingClientRect: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
1823
+ width: number;
1824
+ height: number;
1825
+ top: number;
1826
+ right: number;
1827
+ left: number;
1828
+ bottom: number;
1829
+ }>;
1830
+ export declare const createAnimation: import("@douyin-microapp/typings/api/types").SyncAPI<[{
1831
+ duration?: number | undefined;
1832
+ timingFunction?: string | undefined;
1833
+ delay?: number | undefined;
1834
+ transformOrigin?: string | undefined;
1835
+ } | undefined], import("@douyin-microapp/typings/api/create-animation").Animation>;
1836
+ export declare const pageScrollTo: (arg?: ({
1837
+ scrollTop: number;
1838
+ duration?: number | undefined;
1839
+ success?: ((res: {
1840
+ errMsg: string;
1841
+ }) => void) | undefined;
1842
+ fail?: ((res: {
1843
+ errMsg: string;
1844
+ errNo?: number | undefined;
1845
+ }) => void) | undefined;
1846
+ complete?: ((res: Partial<{
1847
+ errMsg: string;
1848
+ }> & {
1849
+ errMsg: string;
1850
+ errNo?: number | undefined;
1851
+ }) => void) | undefined;
1852
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1853
+ errMsg: string;
1854
+ }, {
1855
+ errMsg: string;
1856
+ errNo?: number | undefined;
1857
+ }>) | undefined) => Promise<{
1858
+ errMsg: string;
1859
+ }>;
1860
+ export declare const setSwipeBackMode: any;
1861
+ export declare const startPullDownRefresh: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {}, {
1862
+ errMsg: string;
1863
+ }, {
1864
+ errMsg: string;
1865
+ errNo?: number | undefined;
1866
+ }>;
1867
+ export declare const stopPullDownRefresh: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {}, {
1868
+ errMsg: string;
1869
+ }, {
1870
+ errMsg: string;
1871
+ errNo?: number | undefined;
1872
+ }>;
1873
+ export declare const hideKeyboard: (arg?: ({
1874
+ success?: ((res: {
1875
+ errMsg: string;
1876
+ }) => void) | undefined;
1877
+ fail?: ((res: {
1878
+ errMsg: string;
1879
+ errNo?: number | undefined;
1880
+ }) => void) | undefined;
1881
+ complete?: ((res: Partial<{
1882
+ errMsg: string;
1883
+ }> & {
1884
+ errMsg: string;
1885
+ errNo?: number | undefined;
1886
+ }) => void) | undefined;
1887
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1888
+ errMsg: string;
1889
+ }, {
1890
+ errMsg: string;
1891
+ errNo?: number | undefined;
1892
+ }>) | undefined) => Promise<{
1893
+ errMsg: string;
1894
+ }>;
1895
+ export declare const showTabBarRedDot: (arg?: ({
1896
+ index: number;
1897
+ success?: ((res: {
1898
+ errMsg: string;
1899
+ }) => void) | undefined;
1900
+ fail?: ((res: {
1901
+ errMsg: string;
1902
+ errNo?: number | undefined;
1903
+ }) => void) | undefined;
1904
+ complete?: ((res: Partial<{
1905
+ errMsg: string;
1906
+ }> & {
1907
+ errMsg: string;
1908
+ errNo?: number | undefined;
1909
+ }) => void) | undefined;
1910
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1911
+ errMsg: string;
1912
+ }, {
1913
+ errMsg: string;
1914
+ errNo?: number | undefined;
1915
+ }>) | undefined) => Promise<{
1916
+ errMsg: string;
1917
+ }>;
1918
+ export declare const showTabBar: (arg?: ({
1919
+ animation?: boolean | undefined;
1920
+ success?: ((res: {
1921
+ errMsg: string;
1922
+ }) => void) | undefined;
1923
+ fail?: ((res: {
1924
+ errMsg: string;
1925
+ errNo?: number | undefined;
1926
+ }) => void) | undefined;
1927
+ complete?: ((res: Partial<{
1928
+ errMsg: string;
1929
+ }> & {
1930
+ errMsg: string;
1931
+ errNo?: number | undefined;
1932
+ }) => void) | undefined;
1933
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1934
+ errMsg: string;
1935
+ }, {
1936
+ errMsg: string;
1937
+ errNo?: number | undefined;
1938
+ }>) | undefined) => Promise<{
1939
+ errMsg: string;
1940
+ }>;
1941
+ export declare const setTabBarStyle: (arg?: ({
1942
+ color?: string | undefined;
1943
+ selectedColor?: string | undefined;
1944
+ backgroundColor?: string | undefined;
1945
+ borderStyle?: "black" | "white" | undefined;
1946
+ success?: ((res: {
1947
+ errMsg: string;
1948
+ }) => void) | undefined;
1949
+ fail?: ((res: {
1950
+ errMsg: string;
1951
+ errNo?: number | undefined;
1952
+ }) => void) | undefined;
1953
+ complete?: ((res: Partial<{
1954
+ errMsg: string;
1955
+ }> & {
1956
+ errMsg: string;
1957
+ errNo?: number | undefined;
1958
+ }) => void) | undefined;
1959
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1960
+ errMsg: string;
1961
+ }, {
1962
+ errMsg: string;
1963
+ errNo?: number | undefined;
1964
+ }>) | undefined) => Promise<{
1965
+ errMsg: string;
1966
+ }>;
1967
+ export declare const setTabBarItem: (arg?: ({
1968
+ index: number;
1969
+ text?: string | undefined;
1970
+ iconPath?: string | undefined;
1971
+ selectedIconPath?: string | undefined;
1972
+ success?: ((res: {
1973
+ errMsg: string;
1974
+ }) => void) | undefined;
1975
+ fail?: ((res: {
1976
+ errMsg: string;
1977
+ errNo?: number | undefined;
1978
+ }) => void) | undefined;
1979
+ complete?: ((res: Partial<{
1980
+ errMsg: string;
1981
+ }> & {
1982
+ errMsg: string;
1983
+ errNo?: number | undefined;
1984
+ }) => void) | undefined;
1985
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
1986
+ errMsg: string;
1987
+ }, {
1988
+ errMsg: string;
1989
+ errNo?: number | undefined;
1990
+ }>) | undefined) => Promise<{
1991
+ errMsg: string;
1992
+ }>;
1993
+ export declare const setTabBarBadge: (arg?: ({
1994
+ index: number;
1995
+ text: string;
1996
+ success?: ((res: {
1997
+ errMsg: string;
1998
+ }) => void) | undefined;
1999
+ fail?: ((res: {
2000
+ errMsg: string;
2001
+ errNo?: number | undefined;
2002
+ }) => void) | undefined;
2003
+ complete?: ((res: Partial<{
2004
+ errMsg: string;
2005
+ }> & {
2006
+ errMsg: string;
2007
+ errNo?: number | undefined;
2008
+ }) => void) | undefined;
2009
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2010
+ errMsg: string;
2011
+ }, {
2012
+ errMsg: string;
2013
+ errNo?: number | undefined;
2014
+ }>) | undefined) => Promise<{
2015
+ errMsg: string;
2016
+ }>;
2017
+ export declare const removeTabBarBadge: (arg?: ({
2018
+ index: number;
2019
+ success?: ((res: {
2020
+ errMsg: string;
2021
+ }) => void) | undefined;
2022
+ fail?: ((res: {
2023
+ errMsg: string;
2024
+ errNo?: number | undefined;
2025
+ }) => void) | undefined;
2026
+ complete?: ((res: Partial<{
2027
+ errMsg: string;
2028
+ }> & {
2029
+ errMsg: string;
2030
+ errNo?: number | undefined;
2031
+ }) => void) | undefined;
2032
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2033
+ errMsg: string;
2034
+ }, {
2035
+ errMsg: string;
2036
+ errNo?: number | undefined;
2037
+ }>) | undefined) => Promise<{
2038
+ errMsg: string;
2039
+ }>;
2040
+ export declare const hideTabBarRedDot: (arg?: ({
2041
+ index: number;
2042
+ success?: ((res: {
2043
+ errMsg: string;
2044
+ }) => void) | undefined;
2045
+ fail?: ((res: {
2046
+ errMsg: string;
2047
+ errNo?: number | undefined;
2048
+ }) => void) | undefined;
2049
+ complete?: ((res: Partial<{
2050
+ errMsg: string;
2051
+ }> & {
2052
+ errMsg: string;
2053
+ errNo?: number | undefined;
2054
+ }) => void) | undefined;
2055
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2056
+ errMsg: string;
2057
+ }, {
2058
+ errMsg: string;
2059
+ errNo?: number | undefined;
2060
+ }>) | undefined) => Promise<{
2061
+ errMsg: string;
2062
+ }>;
2063
+ export declare const hideTabBar: (arg?: ({
2064
+ animation?: boolean | undefined;
2065
+ success?: ((res: {
2066
+ errMsg: string;
2067
+ }) => void) | undefined;
2068
+ fail?: ((res: {
2069
+ errMsg: string;
2070
+ errNo?: number | undefined;
2071
+ }) => void) | undefined;
2072
+ complete?: ((res: Partial<{
2073
+ errMsg: string;
2074
+ }> & {
2075
+ errMsg: string;
2076
+ errNo?: number | undefined;
2077
+ }) => void) | undefined;
2078
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2079
+ errMsg: string;
2080
+ }, {
2081
+ errMsg: string;
2082
+ errNo?: number | undefined;
2083
+ }>) | undefined) => Promise<{
2084
+ errMsg: string;
2085
+ }>;
2086
+ export declare const navigateTo: (arg?: ({
2087
+ url: string;
2088
+ success?: ((res: {
2089
+ errMsg: string;
2090
+ }) => void) | undefined;
2091
+ fail?: ((res: {
2092
+ errMsg: string;
2093
+ errNo?: number | undefined;
2094
+ }) => void) | undefined;
2095
+ complete?: ((res: Partial<{
2096
+ errMsg: string;
2097
+ }> & {
2098
+ errMsg: string;
2099
+ errNo?: number | undefined;
2100
+ }) => void) | undefined;
2101
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2102
+ errMsg: string;
2103
+ }, {
2104
+ errMsg: string;
2105
+ errNo?: number | undefined;
2106
+ }>) | undefined) => Promise<{
2107
+ errMsg: string;
2108
+ }>;
2109
+ export declare const redirectTo: (arg?: ({
2110
+ url: string;
2111
+ success?: ((res: {
2112
+ errMsg: string;
2113
+ }) => void) | undefined;
2114
+ fail?: ((res: {
2115
+ errMsg: string;
2116
+ errNo?: number | undefined;
2117
+ }) => void) | undefined;
2118
+ complete?: ((res: Partial<{
2119
+ errMsg: string;
2120
+ }> & {
2121
+ errMsg: string;
2122
+ errNo?: number | undefined;
2123
+ }) => void) | undefined;
2124
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2125
+ errMsg: string;
2126
+ }, {
2127
+ errMsg: string;
2128
+ errNo?: number | undefined;
2129
+ }>) | undefined) => Promise<{
2130
+ errMsg: string;
2131
+ }>;
2132
+ export declare const switchTab: (arg?: ({
2133
+ url: string;
2134
+ success?: ((res: {
2135
+ errMsg: string;
2136
+ }) => void) | undefined;
2137
+ fail?: ((res: {
2138
+ errMsg: string;
2139
+ errNo?: number | undefined;
2140
+ }) => void) | undefined;
2141
+ complete?: ((res: Partial<{
2142
+ errMsg: string;
2143
+ }> & {
2144
+ errMsg: string;
2145
+ errNo?: number | undefined;
2146
+ }) => void) | undefined;
2147
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2148
+ errMsg: string;
2149
+ }, {
2150
+ errMsg: string;
2151
+ errNo?: number | undefined;
2152
+ }>) | undefined) => Promise<{
2153
+ errMsg: string;
2154
+ }>;
2155
+ export declare const navigateBack: (arg?: ({
2156
+ delta?: number | undefined;
2157
+ success?: ((res: {
2158
+ errMsg: string;
2159
+ }) => void) | undefined;
2160
+ fail?: ((res: {
2161
+ errMsg: string;
2162
+ errNo?: number | undefined;
2163
+ }) => void) | undefined;
2164
+ complete?: ((res: Partial<{
2165
+ errMsg: string;
2166
+ }> & {
2167
+ errMsg: string;
2168
+ errNo?: number | undefined;
2169
+ }) => void) | undefined;
2170
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2171
+ errMsg: string;
2172
+ }, {
2173
+ errMsg: string;
2174
+ errNo?: number | undefined;
2175
+ }>) | undefined) => Promise<{
2176
+ errMsg: string;
2177
+ }>;
2178
+ export declare const reLaunch: (arg?: ({
2179
+ url: string;
2180
+ success?: ((res: {
2181
+ errMsg: string;
2182
+ }) => void) | undefined;
2183
+ fail?: ((res: {
2184
+ errMsg: string;
2185
+ errNo?: number | undefined;
2186
+ }) => void) | undefined;
2187
+ complete?: ((res: Partial<{
2188
+ errMsg: string;
2189
+ }> & {
2190
+ errMsg: string;
2191
+ errNo?: number | undefined;
2192
+ }) => void) | undefined;
2193
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2194
+ errMsg: string;
2195
+ }, {
2196
+ errMsg: string;
2197
+ errNo?: number | undefined;
2198
+ }>) | undefined) => Promise<{
2199
+ errMsg: string;
2200
+ }>;
2201
+ export declare const login: (arg?: ({
2202
+ force?: boolean | undefined;
2203
+ success?: ((res: {
2204
+ errMsg: string;
2205
+ code: string;
2206
+ anonymousCode: string;
2207
+ isLogin: boolean;
2208
+ }) => void) | undefined;
2209
+ fail?: ((res: {
2210
+ errMsg: string;
2211
+ errNo?: number | undefined;
2212
+ }) => void) | undefined;
2213
+ complete?: ((res: Partial<{
2214
+ errMsg: string;
2215
+ code: string;
2216
+ anonymousCode: string;
2217
+ isLogin: boolean;
2218
+ }> & {
2219
+ errMsg: string;
2220
+ errNo?: number | undefined;
2221
+ }) => void) | undefined;
2222
+ } & import("@rsmax/framework-shared").PromisifyArgs<{
2223
+ errMsg: string;
2224
+ code: string;
2225
+ anonymousCode: string;
2226
+ isLogin: boolean;
2227
+ }, {
2228
+ errMsg: string;
2229
+ errNo?: number | undefined;
2230
+ }>) | undefined) => Promise<{
2231
+ errMsg: string;
2232
+ code: string;
2233
+ anonymousCode: string;
2234
+ isLogin: boolean;
2235
+ }>;
2236
+ export declare const checkSession: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {}, {
2237
+ errMsg: string;
2238
+ }, {
2239
+ errMsg: string;
2240
+ errNo?: number | undefined;
2241
+ }>;
2242
+ export declare const getUserInfo: (arg?: ({
2243
+ withCredentials?: boolean | undefined;
2244
+ success?: ((res: {
2245
+ errMsg: string;
2246
+ rawData: string;
2247
+ userInfo: {
2248
+ avatarUrl: string;
2249
+ nickName: string;
2250
+ gender: number;
2251
+ city: string;
2252
+ province: string;
2253
+ country: string;
2254
+ language: string;
2255
+ };
2256
+ signature?: string | undefined;
2257
+ encryptedData?: string | undefined;
2258
+ iv?: string | undefined;
2259
+ }) => void) | undefined;
2260
+ fail?: ((res: {
2261
+ errMsg: string;
2262
+ errNo?: number | undefined;
2263
+ }) => void) | undefined;
2264
+ complete?: ((res: Partial<{
2265
+ errMsg: string;
2266
+ rawData: string;
2267
+ userInfo: {
2268
+ avatarUrl: string;
2269
+ nickName: string;
2270
+ gender: number;
2271
+ city: string;
2272
+ province: string;
2273
+ country: string;
2274
+ language: string;
2275
+ };
2276
+ signature?: string | undefined;
2277
+ encryptedData?: string | undefined;
2278
+ iv?: string | undefined;
1732
2279
  }> & {
1733
2280
  errMsg: string;
1734
2281
  errNo?: number | undefined;
1735
2282
  }) => void) | undefined;
1736
2283
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1737
2284
  errMsg: string;
1738
- userName: string;
1739
- provinceName: string;
1740
- cityName: string;
1741
- countyName: string;
1742
- detailInfo: string;
1743
- telNumber: string;
2285
+ rawData: string;
2286
+ userInfo: {
2287
+ avatarUrl: string;
2288
+ nickName: string;
2289
+ gender: number;
2290
+ city: string;
2291
+ province: string;
2292
+ country: string;
2293
+ language: string;
2294
+ };
2295
+ signature?: string | undefined;
2296
+ encryptedData?: string | undefined;
2297
+ iv?: string | undefined;
1744
2298
  }, {
1745
2299
  errMsg: string;
1746
2300
  errNo?: number | undefined;
1747
2301
  }>) | undefined) => Promise<{
1748
2302
  errMsg: string;
1749
- userName: string;
1750
- provinceName: string;
1751
- cityName: string;
1752
- countyName: string;
1753
- detailInfo: string;
1754
- telNumber: string;
2303
+ rawData: string;
2304
+ userInfo: {
2305
+ avatarUrl: string;
2306
+ nickName: string;
2307
+ gender: number;
2308
+ city: string;
2309
+ province: string;
2310
+ country: string;
2311
+ language: string;
2312
+ };
2313
+ signature?: string | undefined;
2314
+ encryptedData?: string | undefined;
2315
+ iv?: string | undefined;
1755
2316
  }>;
1756
- export declare const setClipboardData: (arg?: ({
1757
- data: string;
2317
+ export declare const getUserProfile: (arg?: ({
2318
+ force?: boolean | undefined;
1758
2319
  success?: ((res: {
1759
2320
  errMsg: string;
2321
+ rawData: string;
2322
+ userInfo: {
2323
+ avatarUrl: string;
2324
+ nickName: string;
2325
+ gender: number;
2326
+ city: string;
2327
+ province: string;
2328
+ country: string;
2329
+ language: string;
2330
+ };
2331
+ signature: string;
2332
+ encryptedData: string;
2333
+ iv: string;
1760
2334
  }) => void) | undefined;
1761
2335
  fail?: ((res: {
1762
2336
  errMsg: string;
@@ -1764,33 +2338,72 @@ export declare const setClipboardData: (arg?: ({
1764
2338
  }) => void) | undefined;
1765
2339
  complete?: ((res: Partial<{
1766
2340
  errMsg: string;
2341
+ rawData: string;
2342
+ userInfo: {
2343
+ avatarUrl: string;
2344
+ nickName: string;
2345
+ gender: number;
2346
+ city: string;
2347
+ province: string;
2348
+ country: string;
2349
+ language: string;
2350
+ };
2351
+ signature: string;
2352
+ encryptedData: string;
2353
+ iv: string;
1767
2354
  }> & {
1768
2355
  errMsg: string;
1769
2356
  errNo?: number | undefined;
1770
2357
  }) => void) | undefined;
1771
2358
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1772
2359
  errMsg: string;
2360
+ rawData: string;
2361
+ userInfo: {
2362
+ avatarUrl: string;
2363
+ nickName: string;
2364
+ gender: number;
2365
+ city: string;
2366
+ province: string;
2367
+ country: string;
2368
+ language: string;
2369
+ };
2370
+ signature: string;
2371
+ encryptedData: string;
2372
+ iv: string;
1773
2373
  }, {
1774
2374
  errMsg: string;
1775
2375
  errNo?: number | undefined;
1776
2376
  }>) | undefined) => Promise<{
1777
2377
  errMsg: string;
2378
+ rawData: string;
2379
+ userInfo: {
2380
+ avatarUrl: string;
2381
+ nickName: string;
2382
+ gender: number;
2383
+ city: string;
2384
+ province: string;
2385
+ country: string;
2386
+ language: string;
2387
+ };
2388
+ signature: string;
2389
+ encryptedData: string;
2390
+ iv: string;
1778
2391
  }>;
1779
- export declare const getClipboardData: import("@douyin-microapp/typings/api/types").AsyncAPI<{}, {
1780
- data: string;
1781
- }, {
1782
- errMsg: string;
1783
- data: string;
1784
- }, {
1785
- errMsg: string;
1786
- errNo?: number | undefined;
1787
- }>;
1788
- export declare const onNetworkStatusChange: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: import("@douyin-microapp/typings/api/network-status").Callback], void>;
1789
- export declare const getNetworkType: (arg?: any) => Promise<any>;
1790
- export declare const makePhoneCall: (arg?: ({
1791
- phoneNumber: string;
2392
+ export declare const createRewardedVideoAd: any;
2393
+ export declare const createInterstitialAd: import("@douyin-microapp/typings/api/types").SyncAPI<[{
2394
+ adUnitId: string;
2395
+ }], import("@douyin-microapp/typings/api/create-interstitial-ad").InterstitialAd>;
2396
+ export declare const preloadDrawAd: (arg?: any) => Promise<any>;
2397
+ export declare const pay: (arg?: ({
2398
+ orderInfo: {
2399
+ order_id: string;
2400
+ order_token: string;
2401
+ };
2402
+ _debug?: 0 | 1 | undefined;
2403
+ service: 5;
1792
2404
  success?: ((res: {
1793
2405
  errMsg: string;
2406
+ code: number;
1794
2407
  }) => void) | undefined;
1795
2408
  fail?: ((res: {
1796
2409
  errMsg: string;
@@ -1798,19 +2411,26 @@ export declare const makePhoneCall: (arg?: ({
1798
2411
  }) => void) | undefined;
1799
2412
  complete?: ((res: Partial<{
1800
2413
  errMsg: string;
2414
+ code: number;
1801
2415
  }> & {
1802
2416
  errMsg: string;
1803
2417
  errNo?: number | undefined;
1804
2418
  }) => void) | undefined;
1805
2419
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1806
2420
  errMsg: string;
2421
+ code: number;
1807
2422
  }, {
1808
2423
  errMsg: string;
1809
2424
  errNo?: number | undefined;
1810
2425
  }>) | undefined) => Promise<{
1811
2426
  errMsg: string;
2427
+ code: number;
1812
2428
  }>;
1813
- export declare const stopAccelerometer: (arg?: ({
2429
+ export declare const navigateToMiniProgram: (arg?: ({
2430
+ appId: string;
2431
+ path?: string | undefined;
2432
+ extraData?: object | undefined;
2433
+ envVersion?: "current" | "latest" | undefined;
1814
2434
  success?: ((res: {
1815
2435
  errMsg: string;
1816
2436
  }) => void) | undefined;
@@ -1832,7 +2452,10 @@ export declare const stopAccelerometer: (arg?: ({
1832
2452
  }>) | undefined) => Promise<{
1833
2453
  errMsg: string;
1834
2454
  }>;
1835
- export declare const startAccelerometer: (arg?: ({
2455
+ export declare const navigateBackMiniProgram: (arg?: ({
2456
+ extraData?: {
2457
+ [x: string]: unknown;
2458
+ } | undefined;
1836
2459
  success?: ((res: {
1837
2460
  errMsg: string;
1838
2461
  }) => void) | undefined;
@@ -1854,14 +2477,15 @@ export declare const startAccelerometer: (arg?: ({
1854
2477
  }>) | undefined) => Promise<{
1855
2478
  errMsg: string;
1856
2479
  }>;
1857
- export declare const onAccelerometerChange: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: (res: {
1858
- x: number;
1859
- y: number;
1860
- z: number;
1861
- }) => void], void>;
1862
- export declare const stopCompass: (arg?: ({
2480
+ export declare const chooseAddress: (arg?: ({
1863
2481
  success?: ((res: {
1864
2482
  errMsg: string;
2483
+ userName: string;
2484
+ provinceName: string;
2485
+ cityName: string;
2486
+ countyName: string;
2487
+ detailInfo: string;
2488
+ telNumber: string;
1865
2489
  }) => void) | undefined;
1866
2490
  fail?: ((res: {
1867
2491
  errMsg: string;
@@ -1869,21 +2493,64 @@ export declare const stopCompass: (arg?: ({
1869
2493
  }) => void) | undefined;
1870
2494
  complete?: ((res: Partial<{
1871
2495
  errMsg: string;
2496
+ userName: string;
2497
+ provinceName: string;
2498
+ cityName: string;
2499
+ countyName: string;
2500
+ detailInfo: string;
2501
+ telNumber: string;
1872
2502
  }> & {
1873
2503
  errMsg: string;
1874
2504
  errNo?: number | undefined;
1875
2505
  }) => void) | undefined;
1876
2506
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1877
2507
  errMsg: string;
2508
+ userName: string;
2509
+ provinceName: string;
2510
+ cityName: string;
2511
+ countyName: string;
2512
+ detailInfo: string;
2513
+ telNumber: string;
1878
2514
  }, {
1879
2515
  errMsg: string;
1880
2516
  errNo?: number | undefined;
1881
2517
  }>) | undefined) => Promise<{
1882
2518
  errMsg: string;
2519
+ userName: string;
2520
+ provinceName: string;
2521
+ cityName: string;
2522
+ countyName: string;
2523
+ detailInfo: string;
2524
+ telNumber: string;
1883
2525
  }>;
1884
- export declare const startCompass: (arg?: ({
2526
+ export declare const getSetting: (arg?: ({
2527
+ withSubscriptions?: boolean | undefined;
1885
2528
  success?: ((res: {
1886
2529
  errMsg: string;
2530
+ authSetting: {
2531
+ "scope.userInfo"?: boolean | undefined;
2532
+ "scope.userLocation"?: boolean | undefined;
2533
+ "scope.address"?: boolean | undefined;
2534
+ "scope.record"?: boolean | undefined;
2535
+ "scope.album"?: boolean | undefined;
2536
+ "scope.camera"?: boolean | undefined;
2537
+ };
2538
+ subscriptionsSetting?: {
2539
+ mainSwitch: boolean;
2540
+ itemSettings: {
2541
+ [x: string]: "accept" | "reject";
2542
+ };
2543
+ templateSettings: {
2544
+ [x: string]: {
2545
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2546
+ alwaysSubscribe: boolean;
2547
+ allowReminderWay: {
2548
+ reminderType: "message_notice" | "feed" | "push";
2549
+ reminderStatus: "accept" | "reject";
2550
+ }[];
2551
+ };
2552
+ };
2553
+ } | undefined;
1887
2554
  }) => void) | undefined;
1888
2555
  fail?: ((res: {
1889
2556
  errMsg: string;
@@ -1891,25 +2558,118 @@ export declare const startCompass: (arg?: ({
1891
2558
  }) => void) | undefined;
1892
2559
  complete?: ((res: Partial<{
1893
2560
  errMsg: string;
2561
+ authSetting: {
2562
+ "scope.userInfo"?: boolean | undefined;
2563
+ "scope.userLocation"?: boolean | undefined;
2564
+ "scope.address"?: boolean | undefined;
2565
+ "scope.record"?: boolean | undefined;
2566
+ "scope.album"?: boolean | undefined;
2567
+ "scope.camera"?: boolean | undefined;
2568
+ };
2569
+ subscriptionsSetting?: {
2570
+ mainSwitch: boolean;
2571
+ itemSettings: {
2572
+ [x: string]: "accept" | "reject";
2573
+ };
2574
+ templateSettings: {
2575
+ [x: string]: {
2576
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2577
+ alwaysSubscribe: boolean;
2578
+ allowReminderWay: {
2579
+ reminderType: "message_notice" | "feed" | "push";
2580
+ reminderStatus: "accept" | "reject";
2581
+ }[];
2582
+ };
2583
+ };
2584
+ } | undefined;
1894
2585
  }> & {
1895
2586
  errMsg: string;
1896
2587
  errNo?: number | undefined;
1897
2588
  }) => void) | undefined;
1898
2589
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1899
2590
  errMsg: string;
2591
+ authSetting: {
2592
+ "scope.userInfo"?: boolean | undefined;
2593
+ "scope.userLocation"?: boolean | undefined;
2594
+ "scope.address"?: boolean | undefined;
2595
+ "scope.record"?: boolean | undefined;
2596
+ "scope.album"?: boolean | undefined;
2597
+ "scope.camera"?: boolean | undefined;
2598
+ };
2599
+ subscriptionsSetting?: {
2600
+ mainSwitch: boolean;
2601
+ itemSettings: {
2602
+ [x: string]: "accept" | "reject";
2603
+ };
2604
+ templateSettings: {
2605
+ [x: string]: {
2606
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2607
+ alwaysSubscribe: boolean;
2608
+ allowReminderWay: {
2609
+ reminderType: "message_notice" | "feed" | "push";
2610
+ reminderStatus: "accept" | "reject";
2611
+ }[];
2612
+ };
2613
+ };
2614
+ } | undefined;
1900
2615
  }, {
1901
2616
  errMsg: string;
1902
2617
  errNo?: number | undefined;
1903
2618
  }>) | undefined) => Promise<{
1904
2619
  errMsg: string;
2620
+ authSetting: {
2621
+ "scope.userInfo"?: boolean | undefined;
2622
+ "scope.userLocation"?: boolean | undefined;
2623
+ "scope.address"?: boolean | undefined;
2624
+ "scope.record"?: boolean | undefined;
2625
+ "scope.album"?: boolean | undefined;
2626
+ "scope.camera"?: boolean | undefined;
2627
+ };
2628
+ subscriptionsSetting?: {
2629
+ mainSwitch: boolean;
2630
+ itemSettings: {
2631
+ [x: string]: "accept" | "reject";
2632
+ };
2633
+ templateSettings: {
2634
+ [x: string]: {
2635
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2636
+ alwaysSubscribe: boolean;
2637
+ allowReminderWay: {
2638
+ reminderType: "message_notice" | "feed" | "push";
2639
+ reminderStatus: "accept" | "reject";
2640
+ }[];
2641
+ };
2642
+ };
2643
+ } | undefined;
1905
2644
  }>;
1906
- export declare const onCompassChange: import("@douyin-microapp/typings/api/types").SyncAPI<[(res: {
1907
- direction?: number | undefined;
1908
- }) => void], void>;
1909
- export declare const scanCode: (arg?: ({
2645
+ export declare const openSetting: (arg?: ({
2646
+ withSubscriptions?: boolean | undefined;
1910
2647
  success?: ((res: {
1911
2648
  errMsg: string;
1912
- result: string;
2649
+ authSetting: {
2650
+ "scope.userInfo"?: boolean | undefined;
2651
+ "scope.userLocation"?: boolean | undefined;
2652
+ "scope.address"?: boolean | undefined;
2653
+ "scope.record"?: boolean | undefined;
2654
+ "scope.album"?: boolean | undefined;
2655
+ "scope.camera"?: boolean | undefined;
2656
+ };
2657
+ subscriptionsSetting?: {
2658
+ mainSwitch: boolean;
2659
+ itemSettings: {
2660
+ [x: string]: "accept" | "reject";
2661
+ };
2662
+ templateSettings: {
2663
+ [x: string]: {
2664
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2665
+ alwaysSubscribe: boolean;
2666
+ allowReminderWay: {
2667
+ reminderType: "message_notice" | "feed" | "push";
2668
+ reminderStatus: "accept" | "reject";
2669
+ }[];
2670
+ };
2671
+ };
2672
+ } | undefined;
1913
2673
  }) => void) | undefined;
1914
2674
  fail?: ((res: {
1915
2675
  errMsg: string;
@@ -1917,22 +2677,92 @@ export declare const scanCode: (arg?: ({
1917
2677
  }) => void) | undefined;
1918
2678
  complete?: ((res: Partial<{
1919
2679
  errMsg: string;
1920
- result: string;
2680
+ authSetting: {
2681
+ "scope.userInfo"?: boolean | undefined;
2682
+ "scope.userLocation"?: boolean | undefined;
2683
+ "scope.address"?: boolean | undefined;
2684
+ "scope.record"?: boolean | undefined;
2685
+ "scope.album"?: boolean | undefined;
2686
+ "scope.camera"?: boolean | undefined;
2687
+ };
2688
+ subscriptionsSetting?: {
2689
+ mainSwitch: boolean;
2690
+ itemSettings: {
2691
+ [x: string]: "accept" | "reject";
2692
+ };
2693
+ templateSettings: {
2694
+ [x: string]: {
2695
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2696
+ alwaysSubscribe: boolean;
2697
+ allowReminderWay: {
2698
+ reminderType: "message_notice" | "feed" | "push";
2699
+ reminderStatus: "accept" | "reject";
2700
+ }[];
2701
+ };
2702
+ };
2703
+ } | undefined;
1921
2704
  }> & {
1922
2705
  errMsg: string;
1923
2706
  errNo?: number | undefined;
1924
2707
  }) => void) | undefined;
1925
2708
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1926
2709
  errMsg: string;
1927
- result: string;
2710
+ authSetting: {
2711
+ "scope.userInfo"?: boolean | undefined;
2712
+ "scope.userLocation"?: boolean | undefined;
2713
+ "scope.address"?: boolean | undefined;
2714
+ "scope.record"?: boolean | undefined;
2715
+ "scope.album"?: boolean | undefined;
2716
+ "scope.camera"?: boolean | undefined;
2717
+ };
2718
+ subscriptionsSetting?: {
2719
+ mainSwitch: boolean;
2720
+ itemSettings: {
2721
+ [x: string]: "accept" | "reject";
2722
+ };
2723
+ templateSettings: {
2724
+ [x: string]: {
2725
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2726
+ alwaysSubscribe: boolean;
2727
+ allowReminderWay: {
2728
+ reminderType: "message_notice" | "feed" | "push";
2729
+ reminderStatus: "accept" | "reject";
2730
+ }[];
2731
+ };
2732
+ };
2733
+ } | undefined;
1928
2734
  }, {
1929
2735
  errMsg: string;
1930
2736
  errNo?: number | undefined;
1931
2737
  }>) | undefined) => Promise<{
1932
2738
  errMsg: string;
1933
- result: string;
2739
+ authSetting: {
2740
+ "scope.userInfo"?: boolean | undefined;
2741
+ "scope.userLocation"?: boolean | undefined;
2742
+ "scope.address"?: boolean | undefined;
2743
+ "scope.record"?: boolean | undefined;
2744
+ "scope.album"?: boolean | undefined;
2745
+ "scope.camera"?: boolean | undefined;
2746
+ };
2747
+ subscriptionsSetting?: {
2748
+ mainSwitch: boolean;
2749
+ itemSettings: {
2750
+ [x: string]: "accept" | "reject";
2751
+ };
2752
+ templateSettings: {
2753
+ [x: string]: {
2754
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2755
+ alwaysSubscribe: boolean;
2756
+ allowReminderWay: {
2757
+ reminderType: "message_notice" | "feed" | "push";
2758
+ reminderStatus: "accept" | "reject";
2759
+ }[];
2760
+ };
2761
+ };
2762
+ } | undefined;
1934
2763
  }>;
1935
- export declare const vibrateShort: (arg?: ({
2764
+ export declare const authorize: (arg?: ({
2765
+ scope: string;
1936
2766
  success?: ((res: {
1937
2767
  errMsg: string;
1938
2768
  }) => void) | undefined;
@@ -1954,9 +2784,52 @@ export declare const vibrateShort: (arg?: ({
1954
2784
  }>) | undefined) => Promise<{
1955
2785
  errMsg: string;
1956
2786
  }>;
1957
- export declare const vibrateLong: (arg?: ({
2787
+ export declare const showDouyinOpenAuth: (arg?: ({
2788
+ scopes: {
2789
+ "video.data": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2790
+ "video.list": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2791
+ "video.search": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2792
+ "video.search.comment": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2793
+ "following.list": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2794
+ "fans.list": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2795
+ "fans.check": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2796
+ renew_refresh_token: import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2797
+ "item.comment": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2798
+ "data.external.user": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2799
+ "data.external.item": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2800
+ "fans.data": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2801
+ "discovery.ent": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2802
+ star_top_score_display: import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2803
+ star_tops: import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2804
+ star_author_score_display: import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2805
+ hotsearch: import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2806
+ "data.external.billboard_game": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2807
+ "data.external.billboard_drama": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2808
+ "data.external.billboard_car": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2809
+ "data.external.billboard_amusement": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2810
+ "data.external.billboard_cospa": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2811
+ "data.external.billboard_food": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2812
+ "data.external.billboard_travel": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2813
+ "data.external.billboard_stars": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2814
+ "data.external.billboard_sport": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2815
+ "data.external.fans_favourite": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2816
+ "data.external.billboard_hot_video": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2817
+ "data.external.fans_source": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2818
+ "data.external.billboard_live": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2819
+ "data.external.billboard_music": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2820
+ "data.external.billboard_prop": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2821
+ "data.external.billboard_topic": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2822
+ "open.get.ticket": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2823
+ "message.once.send": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2824
+ "poi.cps.common": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2825
+ "micapp.is_legal": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2826
+ "market.service.user": import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2827
+ incremental_authorization: import("@douyin-microapp/typings/api/show-douyin-open-auth").ScopeValue;
2828
+ };
1958
2829
  success?: ((res: {
1959
2830
  errMsg: string;
2831
+ ticket: string;
2832
+ grantPermissions: string[];
1960
2833
  }) => void) | undefined;
1961
2834
  fail?: ((res: {
1962
2835
  errMsg: string;
@@ -1964,25 +2837,31 @@ export declare const vibrateLong: (arg?: ({
1964
2837
  }) => void) | undefined;
1965
2838
  complete?: ((res: Partial<{
1966
2839
  errMsg: string;
2840
+ ticket: string;
2841
+ grantPermissions: string[];
1967
2842
  }> & {
1968
2843
  errMsg: string;
1969
2844
  errNo?: number | undefined;
1970
2845
  }) => void) | undefined;
1971
2846
  } & import("@rsmax/framework-shared").PromisifyArgs<{
1972
2847
  errMsg: string;
2848
+ ticket: string;
2849
+ grantPermissions: string[];
1973
2850
  }, {
1974
2851
  errMsg: string;
1975
2852
  errNo?: number | undefined;
1976
2853
  }>) | undefined) => Promise<{
1977
2854
  errMsg: string;
2855
+ ticket: string;
2856
+ grantPermissions: string[];
1978
2857
  }>;
1979
- export declare const getExtConfigSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], Record<string, unknown>>;
1980
- export declare const getExtConfig: (arg?: ({
2858
+ export declare const rateAwemeOrder: any;
2859
+ export declare const canRateAwemeOrders: (arg?: any) => Promise<any>;
2860
+ export declare const reportAnalytics: import("@douyin-microapp/typings/api/types").SyncAPI<[name: string, data: Record<string, unknown>], void>;
2861
+ export declare const followOfficialAccount: (arg?: ({
1981
2862
  success?: ((res: {
1982
2863
  errMsg: string;
1983
- extConfig: {
1984
- [x: string]: unknown;
1985
- };
2864
+ errCode: 0 | 1;
1986
2865
  }) => void) | undefined;
1987
2866
  fail?: ((res: {
1988
2867
  errMsg: string;
@@ -1990,37 +2869,24 @@ export declare const getExtConfig: (arg?: ({
1990
2869
  }) => void) | undefined;
1991
2870
  complete?: ((res: Partial<{
1992
2871
  errMsg: string;
1993
- extConfig: {
1994
- [x: string]: unknown;
1995
- };
2872
+ errCode: 0 | 1;
1996
2873
  }> & {
1997
2874
  errMsg: string;
1998
2875
  errNo?: number | undefined;
1999
2876
  }) => void) | undefined;
2000
2877
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2001
2878
  errMsg: string;
2002
- extConfig: {
2003
- [x: string]: unknown;
2004
- };
2879
+ errCode: 0 | 1;
2005
2880
  }, {
2006
2881
  errMsg: string;
2007
2882
  errNo?: number | undefined;
2008
2883
  }>) | undefined) => Promise<{
2009
2884
  errMsg: string;
2010
- extConfig: {
2011
- [x: string]: unknown;
2012
- };
2885
+ errCode: 0 | 1;
2013
2886
  }>;
2014
- export declare const createSelectorQuery: () => import("@douyin-microapp/typings/types/api").SelectorQuery;
2015
- export declare const createIntersectionObserver: (options?: import("@douyin-microapp/typings/types/api").CreateIntersectionObserverOption | undefined) => import("@douyin-microapp/typings/types/api").IntersectionObserver;
2016
- export declare const createRewardedVideoAd: any;
2017
- export declare const getConnectedWifi: (arg?: ({
2887
+ export declare const openAwemeUserProfile: (arg?: ({
2018
2888
  success?: ((res: {
2019
2889
  errMsg: string;
2020
- SSID: string;
2021
- BSSID: string;
2022
- secure: boolean;
2023
- signalStrength: number;
2024
2890
  }) => void) | undefined;
2025
2891
  fail?: ((res: {
2026
2892
  errMsg: string;
@@ -2028,34 +2894,22 @@ export declare const getConnectedWifi: (arg?: ({
2028
2894
  }) => void) | undefined;
2029
2895
  complete?: ((res: Partial<{
2030
2896
  errMsg: string;
2031
- SSID: string;
2032
- BSSID: string;
2033
- secure: boolean;
2034
- signalStrength: number;
2035
2897
  }> & {
2036
2898
  errMsg: string;
2037
2899
  errNo?: number | undefined;
2038
2900
  }) => void) | undefined;
2039
2901
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2040
2902
  errMsg: string;
2041
- SSID: string;
2042
- BSSID: string;
2043
- secure: boolean;
2044
- signalStrength: number;
2045
2903
  }, {
2046
2904
  errMsg: string;
2047
2905
  errNo?: number | undefined;
2048
2906
  }>) | undefined) => Promise<{
2049
2907
  errMsg: string;
2050
- SSID: string;
2051
- BSSID: string;
2052
- secure: boolean;
2053
- signalStrength: number;
2054
2908
  }>;
2055
- export declare const setKeepScreenOn: (arg?: ({
2056
- keepScreenOn: boolean;
2909
+ export declare const checkFollowState: (arg?: ({
2057
2910
  success?: ((res: {
2058
2911
  errMsg: string;
2912
+ result: boolean;
2059
2913
  }) => void) | undefined;
2060
2914
  fail?: ((res: {
2061
2915
  errMsg: string;
@@ -2063,69 +2917,59 @@ export declare const setKeepScreenOn: (arg?: ({
2063
2917
  }) => void) | undefined;
2064
2918
  complete?: ((res: Partial<{
2065
2919
  errMsg: string;
2920
+ result: boolean;
2066
2921
  }> & {
2067
2922
  errMsg: string;
2068
2923
  errNo?: number | undefined;
2069
2924
  }) => void) | undefined;
2070
2925
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2071
2926
  errMsg: string;
2927
+ result: boolean;
2072
2928
  }, {
2073
2929
  errMsg: string;
2074
2930
  errNo?: number | undefined;
2075
2931
  }>) | undefined) => Promise<{
2076
2932
  errMsg: string;
2933
+ result: boolean;
2077
2934
  }>;
2078
- export declare const getMenuButtonLayout: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
2079
- width: number;
2080
- height: number;
2081
- top: number;
2082
- right: number;
2083
- left: number;
2084
- bottom: number;
2085
- }>;
2086
- export declare const getMenuButtonBoundingClientRect: import("@douyin-microapp/typings/api/types").SyncAPI<[], {
2087
- width: number;
2088
- height: number;
2089
- top: number;
2090
- right: number;
2091
- left: number;
2092
- bottom: number;
2093
- }>;
2094
- export declare const createInnerAudioContext: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/inner-audio").InnerAudioContext>;
2095
- export declare const getBackgroundAudioManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/background-audio").BackgroundAudioManager>;
2096
- export declare const getRecorderManager: import("@douyin-microapp/typings/api/types").SyncAPI<[], import("@douyin-microapp/typings/api/get-recorder-manager").RecordManager>;
2097
- export declare const createLivePlayerContext: import("@douyin-microapp/typings/api/types").SyncAPI<[id: string, component: object] | [id: string], import("@douyin-microapp/typings/api/create-live-player-context").LivePlayerContext>;
2098
- export declare const createMapContext: import("@douyin-microapp/typings/api/types").SyncAPI<[mapId: string, component?: object | undefined], import("@douyin-microapp/typings/api/map").MapContext>;
2099
- export declare const followOfficialAccount: (arg?: ({
2935
+ export declare const followAwemeUser: (arg?: ({
2100
2936
  success?: ((res: {
2101
- errMsg: string;
2102
- errCode: 0 | 1;
2937
+ followed: boolean;
2103
2938
  }) => void) | undefined;
2104
2939
  fail?: ((res: {
2105
2940
  errMsg: string;
2106
2941
  errNo?: number | undefined;
2107
2942
  }) => void) | undefined;
2108
2943
  complete?: ((res: Partial<{
2109
- errMsg: string;
2110
- errCode: 0 | 1;
2944
+ followed: boolean;
2111
2945
  }> & {
2112
2946
  errMsg: string;
2113
2947
  errNo?: number | undefined;
2114
2948
  }) => void) | undefined;
2115
2949
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2116
- errMsg: string;
2117
- errCode: 0 | 1;
2950
+ followed: boolean;
2118
2951
  }, {
2119
2952
  errMsg: string;
2120
2953
  errNo?: number | undefined;
2121
2954
  }>) | undefined) => Promise<{
2122
- errMsg: string;
2123
- errCode: 0 | 1;
2955
+ followed: boolean;
2124
2956
  }>;
2125
- export declare const checkFollowState: (arg?: ({
2957
+ export declare const checkFollowAwemeState: (arg?: any) => Promise<any>;
2958
+ export declare const requestSubscribeMessage: (arg?: ({
2959
+ tmplIds: [];
2126
2960
  success?: ((res: {
2127
2961
  errMsg: string;
2128
- result: boolean;
2962
+ TEMPLATE_ID: string;
2963
+ templateSettings: {
2964
+ [x: string]: {
2965
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2966
+ alwaysSubscribe: boolean;
2967
+ allowReminderWay: {
2968
+ reminderType: "message_notice" | "feed" | "push";
2969
+ reminderStatus: "accept" | "reject";
2970
+ }[];
2971
+ };
2972
+ };
2129
2973
  }) => void) | undefined;
2130
2974
  fail?: ((res: {
2131
2975
  errMsg: string;
@@ -2133,28 +2977,64 @@ export declare const checkFollowState: (arg?: ({
2133
2977
  }) => void) | undefined;
2134
2978
  complete?: ((res: Partial<{
2135
2979
  errMsg: string;
2136
- result: boolean;
2980
+ TEMPLATE_ID: string;
2981
+ templateSettings: {
2982
+ [x: string]: {
2983
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
2984
+ alwaysSubscribe: boolean;
2985
+ allowReminderWay: {
2986
+ reminderType: "message_notice" | "feed" | "push";
2987
+ reminderStatus: "accept" | "reject";
2988
+ }[];
2989
+ };
2990
+ };
2137
2991
  }> & {
2138
2992
  errMsg: string;
2139
2993
  errNo?: number | undefined;
2140
2994
  }) => void) | undefined;
2141
2995
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2142
2996
  errMsg: string;
2143
- result: boolean;
2997
+ TEMPLATE_ID: string;
2998
+ templateSettings: {
2999
+ [x: string]: {
3000
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
3001
+ alwaysSubscribe: boolean;
3002
+ allowReminderWay: {
3003
+ reminderType: "message_notice" | "feed" | "push";
3004
+ reminderStatus: "accept" | "reject";
3005
+ }[];
3006
+ };
3007
+ };
2144
3008
  }, {
2145
3009
  errMsg: string;
2146
3010
  errNo?: number | undefined;
2147
3011
  }>) | undefined) => Promise<{
2148
3012
  errMsg: string;
2149
- result: boolean;
3013
+ TEMPLATE_ID: string;
3014
+ templateSettings: {
3015
+ [x: string]: {
3016
+ status: "fail" | "accept" | "reject" | "repeat" | "limit";
3017
+ alwaysSubscribe: boolean;
3018
+ allowReminderWay: {
3019
+ reminderType: "message_notice" | "feed" | "push";
3020
+ reminderStatus: "accept" | "reject";
3021
+ }[];
3022
+ };
3023
+ };
2150
3024
  }>;
2151
- export declare const onMemoryWarning: import("@douyin-microapp/typings/api/types").SyncAPI<[callback: (res: {
2152
- level?: number | undefined;
2153
- }) => void], void>;
2154
- export declare const showTabBarRedDot: (arg?: ({
2155
- index: number;
3025
+ export declare const getAnalysisInfo: (arg?: ({
2156
3026
  success?: ((res: {
2157
3027
  errMsg: string;
3028
+ type: number;
3029
+ uniqueId: string;
3030
+ roomId: string;
3031
+ anchorId: string;
3032
+ postId: string;
3033
+ itemId: string;
3034
+ conversationId: string;
3035
+ awemeId: string;
3036
+ fromOpenId: string;
3037
+ messageId: string;
2158
3038
  }) => void) | undefined;
2159
3039
  fail?: ((res: {
2160
3040
  errMsg: string;
@@ -2162,20 +3042,54 @@ export declare const showTabBarRedDot: (arg?: ({
2162
3042
  }) => void) | undefined;
2163
3043
  complete?: ((res: Partial<{
2164
3044
  errMsg: string;
3045
+ type: number;
3046
+ uniqueId: string;
3047
+ roomId: string;
3048
+ anchorId: string;
3049
+ postId: string;
3050
+ itemId: string;
3051
+ conversationId: string;
3052
+ awemeId: string;
3053
+ fromOpenId: string;
3054
+ messageId: string;
2165
3055
  }> & {
2166
3056
  errMsg: string;
2167
3057
  errNo?: number | undefined;
2168
3058
  }) => void) | undefined;
2169
3059
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2170
3060
  errMsg: string;
3061
+ type: number;
3062
+ uniqueId: string;
3063
+ roomId: string;
3064
+ anchorId: string;
3065
+ postId: string;
3066
+ itemId: string;
3067
+ conversationId: string;
3068
+ awemeId: string;
3069
+ fromOpenId: string;
3070
+ messageId: string;
2171
3071
  }, {
2172
3072
  errMsg: string;
2173
3073
  errNo?: number | undefined;
2174
3074
  }>) | undefined) => Promise<{
2175
3075
  errMsg: string;
2176
- }>;
2177
- export declare const showTabBar: (arg?: ({
2178
- animation?: boolean | undefined;
3076
+ type: number;
3077
+ uniqueId: string;
3078
+ roomId: string;
3079
+ anchorId: string;
3080
+ postId: string;
3081
+ itemId: string;
3082
+ conversationId: string;
3083
+ awemeId: string;
3084
+ fromOpenId: string;
3085
+ messageId: string;
3086
+ }>;
3087
+ export declare const requirePrivacyAuthorize: (arg?: any) => Promise<any>;
3088
+ export declare const openPrivacyContract: (arg?: any) => Promise<any>;
3089
+ export declare const onNeedPrivacyAuthorization: any;
3090
+ export declare const getPrivacySetting: (arg?: any) => Promise<any>;
3091
+ export declare const showShareMenu: (arg?: ({
3092
+ menus?: ("share" | "record")[] | undefined;
2179
3093
  success?: ((res: {
2180
3094
  errMsg: string;
2181
3095
  }) => void) | undefined;
@@ -2197,11 +3111,8 @@ export declare const showTabBar: (arg?: ({
2197
3111
  }>) | undefined) => Promise<{
2198
3112
  errMsg: string;
2199
3113
  }>;
2200
- export declare const setTabBarStyle: (arg?: ({
2201
- color?: string | undefined;
2202
- selectedColor?: string | undefined;
2203
- backgroundColor?: string | undefined;
2204
- borderStyle?: "black" | "white" | undefined;
3114
+ export declare const hideShareMenu: (arg?: ({
3115
+ menus?: ("share" | "record")[] | undefined;
2205
3116
  success?: ((res: {
2206
3117
  errMsg: string;
2207
3118
  }) => void) | undefined;
@@ -2223,11 +3134,8 @@ export declare const setTabBarStyle: (arg?: ({
2223
3134
  }>) | undefined) => Promise<{
2224
3135
  errMsg: string;
2225
3136
  }>;
2226
- export declare const setTabBarItem: (arg?: ({
2227
- index: number;
2228
- text?: string | undefined;
2229
- iconPath?: string | undefined;
2230
- selectedIconPath?: string | undefined;
3137
+ export declare const navigateToVideoView: (arg?: ({
3138
+ videoId: string;
2231
3139
  success?: ((res: {
2232
3140
  errMsg: string;
2233
3141
  }) => void) | undefined;
@@ -2249,11 +3157,10 @@ export declare const setTabBarItem: (arg?: ({
2249
3157
  }>) | undefined) => Promise<{
2250
3158
  errMsg: string;
2251
3159
  }>;
2252
- export declare const setTabBarBadge: (arg?: ({
2253
- index: number;
2254
- text: string;
3160
+ export declare const getSidebarActivity: (arg?: ({
2255
3161
  success?: ((res: {
2256
3162
  errMsg: string;
3163
+ activityList: string[];
2257
3164
  }) => void) | undefined;
2258
3165
  fail?: ((res: {
2259
3166
  errMsg: string;
@@ -2261,20 +3168,23 @@ export declare const setTabBarBadge: (arg?: ({
2261
3168
  }) => void) | undefined;
2262
3169
  complete?: ((res: Partial<{
2263
3170
  errMsg: string;
3171
+ activityList: string[];
2264
3172
  }> & {
2265
3173
  errMsg: string;
2266
3174
  errNo?: number | undefined;
2267
3175
  }) => void) | undefined;
2268
3176
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2269
3177
  errMsg: string;
3178
+ activityList: string[];
2270
3179
  }, {
2271
3180
  errMsg: string;
2272
3181
  errNo?: number | undefined;
2273
3182
  }>) | undefined) => Promise<{
2274
3183
  errMsg: string;
3184
+ activityList: string[];
2275
3185
  }>;
2276
- export declare const removeTabBarBadge: (arg?: ({
2277
- index: number;
3186
+ export declare const navigateToScene: (arg?: ({
3187
+ scene: "sidebar";
2278
3188
  success?: ((res: {
2279
3189
  errMsg: string;
2280
3190
  }) => void) | undefined;
@@ -2296,10 +3206,12 @@ export declare const removeTabBarBadge: (arg?: ({
2296
3206
  }>) | undefined) => Promise<{
2297
3207
  errMsg: string;
2298
3208
  }>;
2299
- export declare const hideTabBarRedDot: (arg?: ({
2300
- index: number;
3209
+ export declare const updateSidebarActivity: (arg?: ({
3210
+ activity: string;
3211
+ type: "add" | "remove";
2301
3212
  success?: ((res: {
2302
3213
  errMsg: string;
3214
+ logId: string;
2303
3215
  }) => void) | undefined;
2304
3216
  fail?: ((res: {
2305
3217
  errMsg: string;
@@ -2307,22 +3219,37 @@ export declare const hideTabBarRedDot: (arg?: ({
2307
3219
  }) => void) | undefined;
2308
3220
  complete?: ((res: Partial<{
2309
3221
  errMsg: string;
3222
+ logId: string;
2310
3223
  }> & {
2311
3224
  errMsg: string;
2312
3225
  errNo?: number | undefined;
2313
3226
  }) => void) | undefined;
2314
3227
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2315
3228
  errMsg: string;
3229
+ logId: string;
2316
3230
  }, {
2317
3231
  errMsg: string;
2318
3232
  errNo?: number | undefined;
2319
3233
  }>) | undefined) => Promise<{
2320
3234
  errMsg: string;
3235
+ logId: string;
2321
3236
  }>;
2322
- export declare const hideTabBar: (arg?: ({
2323
- animation?: boolean | undefined;
3237
+ export declare const createSceneActivityContext: any;
3238
+ export declare const getAlgorithmManager: (arg?: any) => Promise<any>;
3239
+ export declare const createBytennEngineContext: any;
3240
+ export declare const createStickerManager: any;
3241
+ export declare const getLatestUserCryptoKey: (arg?: any) => Promise<any>;
3242
+ export declare const requestOrder: (arg?: any) => Promise<any>;
3243
+ export declare const getOrderPayment: (arg?: any) => Promise<any>;
3244
+ export declare const confirmFulfillment: any;
3245
+ export declare const createSignOrder: any;
3246
+ export declare const sign: any;
3247
+ export declare const getExtConfig: (arg?: ({
2324
3248
  success?: ((res: {
2325
3249
  errMsg: string;
3250
+ extConfig: {
3251
+ [x: string]: unknown;
3252
+ };
2326
3253
  }) => void) | undefined;
2327
3254
  fail?: ((res: {
2328
3255
  errMsg: string;
@@ -2330,18 +3257,25 @@ export declare const hideTabBar: (arg?: ({
2330
3257
  }) => void) | undefined;
2331
3258
  complete?: ((res: Partial<{
2332
3259
  errMsg: string;
3260
+ extConfig: {
3261
+ [x: string]: unknown;
3262
+ };
2333
3263
  }> & {
2334
3264
  errMsg: string;
2335
3265
  errNo?: number | undefined;
2336
3266
  }) => void) | undefined;
2337
3267
  } & import("@rsmax/framework-shared").PromisifyArgs<{
2338
3268
  errMsg: string;
3269
+ extConfig: {
3270
+ [x: string]: unknown;
3271
+ };
2339
3272
  }, {
2340
3273
  errMsg: string;
2341
3274
  errNo?: number | undefined;
2342
3275
  }>) | undefined) => Promise<{
2343
3276
  errMsg: string;
3277
+ extConfig: {
3278
+ [x: string]: unknown;
3279
+ };
2344
3280
  }>;
2345
- export declare const getAlgorithmManager: (arg?: any) => Promise<any>;
2346
- export declare const createStickerManager: (arg?: any) => Promise<any>;
2347
- export declare const createBytennEngineContext: (arg?: any) => Promise<any>;
3281
+ export declare const getExtConfigSync: import("@douyin-microapp/typings/api/types").SyncAPI<[], Record<string, unknown>>;