zmp-sdk 2.43.3 → 2.44.0-19

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.
package/index.d.ts CHANGED
@@ -1,144 +1,5 @@
1
1
  import { StreamType as StreamType$1, MediaConstraints as MediaConstraints$1, PhotoConstraint as PhotoConstraint$1, PhotoFrame as PhotoFrame$1, MediaDevice as MediaDevice$1, CameraEvents as CameraEvents$1 } from '@mp-types';
2
2
 
3
- /**
4
- * Minimal `EventEmitter` interface that is molded against the Node.js
5
- * `EventEmitter` interface.
6
- */
7
- declare class EventEmitter<
8
- EventTypes extends EventEmitter.ValidEventTypes = string | symbol,
9
- Context extends any = any
10
- > {
11
- static prefixed: string | boolean;
12
-
13
- /**
14
- * Return an array listing the events for which the emitter has registered
15
- * listeners.
16
- */
17
- eventNames(): Array<EventEmitter.EventNames<EventTypes>>;
18
-
19
- /**
20
- * Return the listeners registered for a given event.
21
- */
22
- listeners<T extends EventEmitter.EventNames<EventTypes>>(
23
- event: T
24
- ): Array<EventEmitter.EventListener<EventTypes, T>>;
25
-
26
- /**
27
- * Return the number of listeners listening to a given event.
28
- */
29
- listenerCount(event: EventEmitter.EventNames<EventTypes>): number;
30
-
31
- /**
32
- * Calls each of the listeners registered for a given event.
33
- */
34
- emit<T extends EventEmitter.EventNames<EventTypes>>(
35
- event: T,
36
- ...args: EventEmitter.EventArgs<EventTypes, T>
37
- ): boolean;
38
-
39
- /**
40
- * Add a listener for a given event.
41
- */
42
- on<T extends EventEmitter.EventNames<EventTypes>>(
43
- event: T,
44
- fn: EventEmitter.EventListener<EventTypes, T>,
45
- context?: Context
46
- ): this;
47
- addListener<T extends EventEmitter.EventNames<EventTypes>>(
48
- event: T,
49
- fn: EventEmitter.EventListener<EventTypes, T>,
50
- context?: Context
51
- ): this;
52
-
53
- /**
54
- * Add a one-time listener for a given event.
55
- */
56
- once<T extends EventEmitter.EventNames<EventTypes>>(
57
- event: T,
58
- fn: EventEmitter.EventListener<EventTypes, T>,
59
- context?: Context
60
- ): this;
61
-
62
- /**
63
- * Remove the listeners of a given event.
64
- */
65
- removeListener<T extends EventEmitter.EventNames<EventTypes>>(
66
- event: T,
67
- fn?: EventEmitter.EventListener<EventTypes, T>,
68
- context?: Context,
69
- once?: boolean
70
- ): this;
71
- off<T extends EventEmitter.EventNames<EventTypes>>(
72
- event: T,
73
- fn?: EventEmitter.EventListener<EventTypes, T>,
74
- context?: Context,
75
- once?: boolean
76
- ): this;
77
-
78
- /**
79
- * Remove all listeners, or those of the specified event.
80
- */
81
- removeAllListeners(event?: EventEmitter.EventNames<EventTypes>): this;
82
- }
83
-
84
- declare namespace EventEmitter {
85
- export interface ListenerFn<Args extends any[] = any[]> {
86
- (...args: Args): void;
87
- }
88
-
89
- export interface EventEmitterStatic {
90
- new <
91
- EventTypes extends ValidEventTypes = string | symbol,
92
- Context = any
93
- >(): EventEmitter<EventTypes, Context>;
94
- }
95
-
96
- /**
97
- * `object` should be in either of the following forms:
98
- * ```
99
- * interface EventTypes {
100
- * 'event-with-parameters': any[]
101
- * 'event-with-example-handler': (...args: any[]) => void
102
- * }
103
- * ```
104
- */
105
- export type ValidEventTypes = string | symbol | object;
106
-
107
- export type EventNames<T extends ValidEventTypes> = T extends string | symbol
108
- ? T
109
- : keyof T;
110
-
111
- export type ArgumentMap<T extends object> = {
112
- [K in keyof T]: T[K] extends (...args: any[]) => void
113
- ? Parameters<T[K]>
114
- : T[K] extends any[]
115
- ? T[K]
116
- : any[];
117
- };
118
-
119
- export type EventListener<
120
- T extends ValidEventTypes,
121
- K extends EventNames<T>
122
- > = T extends string | symbol
123
- ? (...args: any[]) => void
124
- : (
125
- ...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]
126
- ) => void;
127
-
128
- export type EventArgs<
129
- T extends ValidEventTypes,
130
- K extends EventNames<T>
131
- > = Parameters<EventListener<T, K>>;
132
-
133
- export const EventEmitter: EventEmitterStatic;
134
- }
135
-
136
- declare namespace eventemitter3 {
137
- export {
138
- EventEmitter as default,
139
- };
140
- }
141
-
142
3
  /**
143
4
  * @typedef {"none" | "wifi" | "cellular" | "unknown"} NetworkType
144
5
  */
@@ -171,7 +32,8 @@ declare enum Events {
171
32
  AppClose = "h5.event.action.close",
172
33
  PaymentCallback = "payment.callback",
173
34
  PaymentResult = "action.payment.result",
174
- PaymentClose = "action.payment.close"
35
+ PaymentClose = "action.payment.close",
36
+ DownloadProgress = "h5.event.webview.download.progress"
175
37
  }
176
38
  declare enum JumpStatus {
177
39
  DOING = "doing",
@@ -559,6 +421,38 @@ declare const ACTION: {
559
421
  OPEN_ADTIMA_ADS: {};
560
422
  GET_ADIDCLIENT: {};
561
423
  SCAN_IBEACON: {};
424
+ SAVE_VIDEO_GALLERY: {
425
+ versionLive: {
426
+ iOS: number;
427
+ };
428
+ errorList: {
429
+ android: {
430
+ "-101": {
431
+ mapTo: {
432
+ code: number;
433
+ message: string;
434
+ };
435
+ needMoreDetail: boolean;
436
+ };
437
+ "-102": {
438
+ mapTo: {
439
+ code: number;
440
+ message: string;
441
+ };
442
+ needMoreDetail: boolean;
443
+ };
444
+ };
445
+ iOS: {
446
+ "-10": {
447
+ mapTo: {
448
+ code: number;
449
+ message: string;
450
+ };
451
+ needMoreDetail: boolean;
452
+ };
453
+ };
454
+ };
455
+ };
562
456
  INTERACTIVE_VIBRATION: {};
563
457
  SAVE_IMAGE_GALLERY: {
564
458
  versionLive: {
@@ -1034,6 +928,39 @@ declare const ACTION: {
1034
928
  MP_CONFIRM_REQUEST_PAYMENT: {
1035
929
  skipJump: boolean;
1036
930
  };
931
+ SAVE_FILE: {
932
+ versionLive: {
933
+ iOS: number;
934
+ };
935
+ skipJump: boolean;
936
+ errorList: {
937
+ android: {
938
+ "-101": {
939
+ mapTo: {
940
+ code: number;
941
+ message: string;
942
+ };
943
+ needMoreDetail: boolean;
944
+ };
945
+ "-102": {
946
+ mapTo: {
947
+ code: number;
948
+ message: string;
949
+ };
950
+ needMoreDetail: boolean;
951
+ };
952
+ };
953
+ iOS: {
954
+ "-10": {
955
+ mapTo: {
956
+ code: number;
957
+ message: string;
958
+ };
959
+ needMoreDetail: boolean;
960
+ };
961
+ };
962
+ };
963
+ };
1037
964
  };
1038
965
  declare const AUTHEN_SCOPE_VALUES: readonly ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"];
1039
966
  declare const GET_SETTINGS_SCOPE_VALUES: readonly ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber", "scope.camera", "scope.micro"];
@@ -1057,6 +984,12 @@ type AsyncVoidCallback = {
1057
984
  success?: () => void;
1058
985
  fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
1059
986
  };
987
+ type AsyncProgressCallback = {
988
+ action?: keyof typeof ACTION;
989
+ onProgress?: (progress: number) => void;
990
+ success?: () => void;
991
+ fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
992
+ };
1060
993
  type GetLocationReturns = {
1061
994
  /** latitude */
1062
995
  latitude?: string;
@@ -1253,6 +1186,9 @@ type AuthorizeType<T extends ScopeValues> = Partial<{
1253
1186
  type GetSettingReturn = {
1254
1187
  authSetting: AuthorizeType<(typeof GET_SETTINGS_SCOPE_VALUES)[number]>;
1255
1188
  };
1189
+ type SaveFileReturns = {
1190
+ savedPath: string;
1191
+ };
1256
1192
 
1257
1193
  declare enum CameraEvents {
1258
1194
  OnFrameCallback = "h5.event.camera.frame",
@@ -1307,13 +1243,7 @@ type PhotoConstraint = {
1307
1243
  minScreenshotHeight?: number;
1308
1244
  };
1309
1245
 
1310
- declare function login(args?: AsyncCallback<string>): Promise<string>;
1311
-
1312
- declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
1313
-
1314
- declare function getVersion(): string;
1315
-
1316
- declare function getSystemInfo(): SystemInfo;
1246
+ declare function getStorageInfoSync(): StorageInfo;
1317
1247
 
1318
1248
  declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
1319
1249
 
@@ -2257,6 +2187,164 @@ declare enum ZodFirstPartyTypeKind {
2257
2187
  ZodPipeline = "ZodPipeline"
2258
2188
  }
2259
2189
 
2190
+ declare const removeItemArgs: ZodString[];
2191
+ declare function removeItem(key: TypeOf<(typeof removeItemArgs)[0]>): void;
2192
+
2193
+ declare function clear(): void;
2194
+
2195
+ declare const setItemArgs: ZodString[];
2196
+ declare function setItem(key: TypeOf<(typeof setItemArgs)[0]>, value: TypeOf<(typeof setItemArgs)[1]>): void;
2197
+
2198
+ declare const getItemArgs: ZodString[];
2199
+ declare function getItem(key: TypeOf<(typeof getItemArgs)[0]>): string;
2200
+
2201
+ /**
2202
+ * Minimal `EventEmitter` interface that is molded against the Node.js
2203
+ * `EventEmitter` interface.
2204
+ */
2205
+ declare class EventEmitter<
2206
+ EventTypes extends EventEmitter.ValidEventTypes = string | symbol,
2207
+ Context extends any = any
2208
+ > {
2209
+ static prefixed: string | boolean;
2210
+
2211
+ /**
2212
+ * Return an array listing the events for which the emitter has registered
2213
+ * listeners.
2214
+ */
2215
+ eventNames(): Array<EventEmitter.EventNames<EventTypes>>;
2216
+
2217
+ /**
2218
+ * Return the listeners registered for a given event.
2219
+ */
2220
+ listeners<T extends EventEmitter.EventNames<EventTypes>>(
2221
+ event: T
2222
+ ): Array<EventEmitter.EventListener<EventTypes, T>>;
2223
+
2224
+ /**
2225
+ * Return the number of listeners listening to a given event.
2226
+ */
2227
+ listenerCount(event: EventEmitter.EventNames<EventTypes>): number;
2228
+
2229
+ /**
2230
+ * Calls each of the listeners registered for a given event.
2231
+ */
2232
+ emit<T extends EventEmitter.EventNames<EventTypes>>(
2233
+ event: T,
2234
+ ...args: EventEmitter.EventArgs<EventTypes, T>
2235
+ ): boolean;
2236
+
2237
+ /**
2238
+ * Add a listener for a given event.
2239
+ */
2240
+ on<T extends EventEmitter.EventNames<EventTypes>>(
2241
+ event: T,
2242
+ fn: EventEmitter.EventListener<EventTypes, T>,
2243
+ context?: Context
2244
+ ): this;
2245
+ addListener<T extends EventEmitter.EventNames<EventTypes>>(
2246
+ event: T,
2247
+ fn: EventEmitter.EventListener<EventTypes, T>,
2248
+ context?: Context
2249
+ ): this;
2250
+
2251
+ /**
2252
+ * Add a one-time listener for a given event.
2253
+ */
2254
+ once<T extends EventEmitter.EventNames<EventTypes>>(
2255
+ event: T,
2256
+ fn: EventEmitter.EventListener<EventTypes, T>,
2257
+ context?: Context
2258
+ ): this;
2259
+
2260
+ /**
2261
+ * Remove the listeners of a given event.
2262
+ */
2263
+ removeListener<T extends EventEmitter.EventNames<EventTypes>>(
2264
+ event: T,
2265
+ fn?: EventEmitter.EventListener<EventTypes, T>,
2266
+ context?: Context,
2267
+ once?: boolean
2268
+ ): this;
2269
+ off<T extends EventEmitter.EventNames<EventTypes>>(
2270
+ event: T,
2271
+ fn?: EventEmitter.EventListener<EventTypes, T>,
2272
+ context?: Context,
2273
+ once?: boolean
2274
+ ): this;
2275
+
2276
+ /**
2277
+ * Remove all listeners, or those of the specified event.
2278
+ */
2279
+ removeAllListeners(event?: EventEmitter.EventNames<EventTypes>): this;
2280
+ }
2281
+
2282
+ declare namespace EventEmitter {
2283
+ export interface ListenerFn<Args extends any[] = any[]> {
2284
+ (...args: Args): void;
2285
+ }
2286
+
2287
+ export interface EventEmitterStatic {
2288
+ new <
2289
+ EventTypes extends ValidEventTypes = string | symbol,
2290
+ Context = any
2291
+ >(): EventEmitter<EventTypes, Context>;
2292
+ }
2293
+
2294
+ /**
2295
+ * `object` should be in either of the following forms:
2296
+ * ```
2297
+ * interface EventTypes {
2298
+ * 'event-with-parameters': any[]
2299
+ * 'event-with-example-handler': (...args: any[]) => void
2300
+ * }
2301
+ * ```
2302
+ */
2303
+ export type ValidEventTypes = string | symbol | object;
2304
+
2305
+ export type EventNames<T extends ValidEventTypes> = T extends string | symbol
2306
+ ? T
2307
+ : keyof T;
2308
+
2309
+ export type ArgumentMap<T extends object> = {
2310
+ [K in keyof T]: T[K] extends (...args: any[]) => void
2311
+ ? Parameters<T[K]>
2312
+ : T[K] extends any[]
2313
+ ? T[K]
2314
+ : any[];
2315
+ };
2316
+
2317
+ export type EventListener<
2318
+ T extends ValidEventTypes,
2319
+ K extends EventNames<T>
2320
+ > = T extends string | symbol
2321
+ ? (...args: any[]) => void
2322
+ : (
2323
+ ...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]
2324
+ ) => void;
2325
+
2326
+ export type EventArgs<
2327
+ T extends ValidEventTypes,
2328
+ K extends EventNames<T>
2329
+ > = Parameters<EventListener<T, K>>;
2330
+
2331
+ export const EventEmitter: EventEmitterStatic;
2332
+ }
2333
+
2334
+ declare namespace eventemitter3 {
2335
+ export {
2336
+ EventEmitter as default,
2337
+ };
2338
+ }
2339
+
2340
+ declare function login(args?: AsyncCallback<string>): Promise<string>;
2341
+
2342
+ declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
2343
+
2344
+ declare function getVersion(): string;
2345
+
2346
+ declare function getSystemInfo(): SystemInfo;
2347
+
2260
2348
  declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
2261
2349
  title: ZodString;
2262
2350
  }, "strip", ZodTypeAny, {
@@ -2931,7 +3019,16 @@ declare const saveImageToGalleryArgs: ZodOptional<ZodObject<{
2931
3019
  imageUrl?: string | undefined;
2932
3020
  imageBase64Data?: string | undefined;
2933
3021
  }>>[];
2934
- declare function saveImageToGallery(args: AsyncVoidCallback & TypeOf<(typeof saveImageToGalleryArgs)[0]>): Promise<void>;
3022
+ declare function saveImageToGallery(args: AsyncProgressCallback & TypeOf<(typeof saveImageToGalleryArgs)[0]>): Promise<void>;
3023
+
3024
+ declare const saveVideoToGalleryArgs: ZodOptional<ZodObject<{
3025
+ videoUrl: ZodString;
3026
+ }, "strip", ZodTypeAny, {
3027
+ videoUrl: string;
3028
+ }, {
3029
+ videoUrl: string;
3030
+ }>>[];
3031
+ declare function saveVideoToGallery(args: AsyncProgressCallback & TypeOf<(typeof saveVideoToGalleryArgs)[0]>): Promise<void>;
2935
3032
 
2936
3033
  declare const openMiniAppArgs: ZodObject<{
2937
3034
  appId: ZodString;
@@ -3261,6 +3358,30 @@ declare const checkTransactionArgs: ZodObject<{
3261
3358
  }>[];
3262
3359
  declare function checkTransaction(args: AsyncCallback<CheckTransactionReturns> & TypeOf<(typeof checkTransactionArgs)[0]>): Promise<CheckTransactionReturns>;
3263
3360
 
3361
+ declare const createOrderIAPArgs: ZodObject<{
3362
+ productId: ZodString;
3363
+ payType: ZodOptional<ZodEnum<["ONETIME", "SUBSCRIPTION"]>>;
3364
+ prorationMode: ZodOptional<ZodDefault<ZodEnum<["DEFERRED", "IMMEDIATE_AND_CHARGE_FULL_PRICE"]>>>;
3365
+ utm: ZodOptional<ZodString>;
3366
+ method: ZodOptional<ZodEnum<["IAP", "IAP_SANDBOX"]>>;
3367
+ merchantTransId: ZodOptional<ZodString>;
3368
+ }, "strip", ZodTypeAny, {
3369
+ method?: "IAP" | "IAP_SANDBOX" | undefined;
3370
+ payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
3371
+ utm?: string | undefined;
3372
+ merchantTransId?: string | undefined;
3373
+ prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
3374
+ productId: string;
3375
+ }, {
3376
+ method?: "IAP" | "IAP_SANDBOX" | undefined;
3377
+ payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
3378
+ utm?: string | undefined;
3379
+ merchantTransId?: string | undefined;
3380
+ prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
3381
+ productId: string;
3382
+ }>[];
3383
+ declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<(typeof createOrderIAPArgs)[0]>): Promise<CreateOrderIAPReturns>;
3384
+
3264
3385
  declare const events: EventEmitter;
3265
3386
 
3266
3387
  declare const setAndroidBottomNavigationBarArgs: ZodOptional<ZodObject<{
@@ -3342,30 +3463,6 @@ declare const configAppViewArgs: ZodObject<{
3342
3463
  }>[];
3343
3464
  declare function configAppView(args: AsyncVoidCallback & TypeOf<(typeof configAppViewArgs)[0]>): Promise<void>;
3344
3465
 
3345
- declare const createOrderIAPArgs: ZodObject<{
3346
- productId: ZodString;
3347
- payType: ZodOptional<ZodEnum<["ONETIME", "SUBSCRIPTION"]>>;
3348
- prorationMode: ZodOptional<ZodDefault<ZodEnum<["DEFERRED", "IMMEDIATE_AND_CHARGE_FULL_PRICE"]>>>;
3349
- utm: ZodOptional<ZodString>;
3350
- method: ZodOptional<ZodEnum<["IAP", "IAP_SANDBOX"]>>;
3351
- merchantTransId: ZodOptional<ZodString>;
3352
- }, "strip", ZodTypeAny, {
3353
- method?: "IAP" | "IAP_SANDBOX" | undefined;
3354
- payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
3355
- utm?: string | undefined;
3356
- merchantTransId?: string | undefined;
3357
- prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
3358
- productId: string;
3359
- }, {
3360
- method?: "IAP" | "IAP_SANDBOX" | undefined;
3361
- payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
3362
- utm?: string | undefined;
3363
- merchantTransId?: string | undefined;
3364
- prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
3365
- productId: string;
3366
- }>[];
3367
- declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<(typeof createOrderIAPArgs)[0]>): Promise<CreateOrderIAPReturns>;
3368
-
3369
3466
  declare function minimizeApp(args?: AsyncVoidCallback): Promise<void>;
3370
3467
 
3371
3468
  declare function openPermissionSetting(args?: AsyncVoidCallback): Promise<void>;
@@ -3667,18 +3764,33 @@ declare function scanNFC(args: AsyncCallback & TypeOf<(typeof scanNFCArgs)[0]>):
3667
3764
 
3668
3765
  declare function checkNFC(args: AsyncVoidCallback): Promise<any>;
3669
3766
 
3670
- declare const getItemArgs: ZodString[];
3671
- declare function getItem(key: TypeOf<(typeof getItemArgs)[0]>): string;
3672
-
3673
- declare const setItemArgs: ZodString[];
3674
- declare function setItem(key: TypeOf<(typeof setItemArgs)[0]>, value: TypeOf<(typeof setItemArgs)[1]>): void;
3675
-
3676
- declare function clear(): void;
3767
+ declare const nativeStorage: {
3768
+ getItem: typeof getItem;
3769
+ setItem: typeof setItem;
3770
+ clear: typeof clear;
3771
+ removeItem: typeof removeItem;
3772
+ getStorageInfo: typeof getStorageInfoSync;
3773
+ };
3677
3774
 
3678
- declare const removeItemArgs: ZodString[];
3679
- declare function removeItem(key: TypeOf<(typeof removeItemArgs)[0]>): void;
3775
+ declare const Payment: {
3776
+ createOrder: typeof createOrder;
3777
+ checkTransaction: typeof checkTransaction;
3778
+ createOrderIAP: typeof createOrderIAP;
3779
+ selectPaymentMethod: typeof selectPaymentMethod;
3780
+ };
3781
+ declare const CheckoutSDK: {
3782
+ purchase: typeof purchase;
3783
+ selectPaymentMethod: typeof selectPaymentMethod;
3784
+ };
3680
3785
 
3681
- declare function getStorageInfoSync(): StorageInfo;
3786
+ declare const downloadFileArgs: ZodOptional<ZodObject<{
3787
+ url: ZodString;
3788
+ }, "strip", ZodTypeAny, {
3789
+ url: string;
3790
+ }, {
3791
+ url: string;
3792
+ }>>[];
3793
+ declare function downloadFile(args: AsyncProgressCallback & TypeOf<(typeof downloadFileArgs)[0]>): Promise<void>;
3682
3794
 
3683
3795
  declare const otherApis: {
3684
3796
  Events: typeof Events;
@@ -3723,6 +3835,7 @@ declare const otherApis: {
3723
3835
  onKeepScreen: typeof onKeepScreen;
3724
3836
  offKeepScreen: typeof offKeepScreen;
3725
3837
  saveImageToGallery: typeof saveImageToGallery;
3838
+ saveVideoToGallery: typeof saveVideoToGallery;
3726
3839
  openMiniApp: typeof openMiniApp;
3727
3840
  vibrate: typeof vibrate;
3728
3841
  openWebview: typeof openWebview;
@@ -3777,28 +3890,29 @@ declare const otherApis: {
3777
3890
  showFunctionButtonWidget: typeof showFunctionButtonWidget;
3778
3891
  scanNFC: typeof scanNFC;
3779
3892
  checkNFC: typeof checkNFC;
3893
+ nativeStorage: {
3894
+ getItem: typeof getItem;
3895
+ setItem: typeof setItem;
3896
+ clear: typeof clear;
3897
+ removeItem: typeof removeItem;
3898
+ getStorageInfo: typeof getStorageInfoSync;
3899
+ };
3900
+ Payment: {
3901
+ createOrder: typeof createOrder;
3902
+ checkTransaction: typeof checkTransaction;
3903
+ createOrderIAP: typeof createOrderIAP;
3904
+ selectPaymentMethod: typeof selectPaymentMethod;
3905
+ };
3906
+ CheckoutSDK: {
3907
+ purchase: typeof purchase;
3908
+ selectPaymentMethod: typeof selectPaymentMethod;
3909
+ };
3910
+ downloadFile: typeof downloadFile;
3780
3911
  FacingMode: typeof FacingMode;
3781
3912
  PhotoFormat: typeof PhotoFormat;
3782
3913
  PhotoQuality: typeof PhotoQuality;
3783
3914
  StreamType: typeof StreamType;
3784
3915
  ZMACameraImp: typeof ZMACameraImp;
3785
3916
  };
3786
- declare const storage: {
3787
- getItem: typeof getItem;
3788
- setItem: typeof setItem;
3789
- removeItem: typeof removeItem;
3790
- clear: typeof clear;
3791
- getStorageInfo: typeof getStorageInfoSync;
3792
- };
3793
- declare const payment: {
3794
- createOrder: typeof createOrder;
3795
- checkTransaction: typeof checkTransaction;
3796
- createOrderIAP: typeof createOrderIAP;
3797
- selectPaymentMethod: typeof selectPaymentMethod;
3798
- };
3799
- declare const checkout: {
3800
- selectPaymentMethod: typeof selectPaymentMethod;
3801
- purchase: typeof purchase;
3802
- };
3803
3917
 
3804
- export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, checkout as CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TextAlignType, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, storage as nativeStorage, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
3918
+ export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncProgressCallback, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, SaveFileReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TextAlignType, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, downloadFile, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, loadAd, login, minimizeApp, nativeStorage, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, saveVideoToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };