@lazycatcloud/sdk 0.1.489 → 0.1.490

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 (59) hide show
  1. package/dist/common/apk_shell.d.ts +126 -0
  2. package/dist/common/box.d.ts +2061 -0
  3. package/dist/common/browseronly.d.ts +159 -0
  4. package/dist/common/end_device.d.ts +358 -0
  5. package/dist/common/file_handler.d.ts +3398 -0
  6. package/dist/common/filetrans.d.ts +8541 -0
  7. package/dist/common/gateway.d.ts +249 -0
  8. package/dist/common/iscsi.d.ts +1841 -0
  9. package/dist/common/media_meta.d.ts +342 -0
  10. package/dist/common/message.d.ts +1435 -0
  11. package/dist/common/peripheral_device.d.ts +1768 -0
  12. package/dist/common/security_context.d.ts +241 -0
  13. package/dist/common/users.d.ts +367 -0
  14. package/dist/dlna/dlna.d.ts +344 -0
  15. package/dist/extentions/app_common.d.ts +130 -0
  16. package/dist/extentions/base.d.ts +136 -0
  17. package/dist/extentions/client_authorization.d.ts +19 -0
  18. package/dist/extentions/index.d.ts +24 -0
  19. package/dist/extentions/mediasession/definitions.d.ts +54 -0
  20. package/dist/extentions/mediasession/index.d.ts +8 -0
  21. package/dist/extentions/mediasession/web.d.ts +7 -0
  22. package/dist/extentions/safe_app.d.ts +35 -0
  23. package/dist/extentions/unsafe_app.d.ts +4 -0
  24. package/dist/extentions/vibrate_type.d.ts +10 -0
  25. package/dist/extentions/webview-bridge.d.ts +1 -0
  26. package/dist/google/protobuf/empty.d.ts +20 -0
  27. package/dist/google/protobuf/timestamp.d.ts +274 -0
  28. package/dist/grpcweb.d.ts +27 -0
  29. package/dist/index.d.ts +87 -0
  30. package/dist/localdevice/ble.d.ts +566 -0
  31. package/dist/localdevice/client.d.ts +218 -0
  32. package/dist/localdevice/cloud-driver.d.ts +152 -0
  33. package/dist/localdevice/config.d.ts +150 -0
  34. package/dist/localdevice/contacts.d.ts +556 -0
  35. package/dist/localdevice/device.d.ts +86 -0
  36. package/dist/localdevice/dialog.d.ts +239 -0
  37. package/dist/localdevice/local-launch.d.ts +303 -0
  38. package/dist/localdevice/network.d.ts +84 -0
  39. package/dist/localdevice/oneway-sync.d.ts +274 -0
  40. package/dist/localdevice/permission.d.ts +233 -0
  41. package/dist/localdevice/photo.d.ts +1408 -0
  42. package/dist/localdevice/photo.js.map +1 -1
  43. package/dist/localdevice/remote-control.d.ts +1941 -0
  44. package/dist/localdevice/remote-input-method.d.ts +128 -0
  45. package/dist/package.json +1 -1
  46. package/dist/sys/btled.d.ts +197 -0
  47. package/dist/sys/btrfs.d.ts +642 -0
  48. package/dist/sys/devopt.d.ts +101 -0
  49. package/dist/sys/dirmon.d.ts +136 -0
  50. package/dist/sys/event.d.ts +143 -0
  51. package/dist/sys/hal.d.ts +1021 -0
  52. package/dist/sys/ingress.d.ts +347 -0
  53. package/dist/sys/network_manager.d.ts +1179 -0
  54. package/dist/sys/package_manager.d.ts +25666 -0
  55. package/dist/sys/stats/cgroup_metrics.d.ts +22045 -0
  56. package/dist/sys/tvos.d.ts +490 -0
  57. package/dist/sys/version.d.ts +65 -0
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/package.json +1 -1
@@ -0,0 +1,566 @@
1
+ import { grpc } from "@improbable-eng/grpc-web";
2
+ import Long from "long";
3
+ import _m0 from "protobufjs/minimal";
4
+ import { Observable } from "rxjs";
5
+ export declare enum PermissionGroupStatus {
6
+ /** UNKNOWN - 未知的(或用户未决定) */
7
+ UNKNOWN = 0,
8
+ /** DENIED - 拒绝授权 */
9
+ DENIED = 1,
10
+ /** AUTHORIZED - 批准 */
11
+ AUTHORIZED = 2,
12
+ /** LIMITED - 有限授权(例如: Android 中未完全允许文件访问) */
13
+ LIMITED = 3,
14
+ UNRECOGNIZED = -1
15
+ }
16
+ export declare function permissionGroupStatusFromJSON(object: any): PermissionGroupStatus;
17
+ export declare function permissionGroupStatusToJSON(object: PermissionGroupStatus): string;
18
+ export interface ScanBleRequest {
19
+ /** 扫描带指定uuid服务的蓝牙设备 */
20
+ serviceUuid?: string | undefined;
21
+ }
22
+ export interface BluetoothDevice {
23
+ /** 蓝牙名称 */
24
+ deviceName: string;
25
+ /** 设备地址(mac) */
26
+ deviceAddress: string;
27
+ }
28
+ export interface ConnectBleRequest {
29
+ /** 设备地址(mac) */
30
+ deviceAddress: string;
31
+ /** 连接的mtu参数. */
32
+ mtu?: number | undefined;
33
+ }
34
+ export interface ConnectBleReply {
35
+ services: BleService[];
36
+ }
37
+ export interface BleService {
38
+ /** 服务uuid */
39
+ uuid: string;
40
+ /** 服务类型 */
41
+ serviceType: number;
42
+ /** 特征 */
43
+ gattCharacteristics: BluetoothGattCharacteristic[];
44
+ }
45
+ export interface BluetoothGattCharacteristic {
46
+ /** 特征uuid */
47
+ uuid: string;
48
+ /** 特征属性 */
49
+ properties: number;
50
+ }
51
+ export interface WriteRequest {
52
+ /** ble 地址 */
53
+ deviceAddress: string;
54
+ /** BluetoothGattCharacteristic 的uuid */
55
+ gattCharacteristicUuid: string;
56
+ message: Uint8Array;
57
+ }
58
+ export interface WriteReply {
59
+ success: boolean;
60
+ }
61
+ export interface ReadRequest {
62
+ /** ble 地址 */
63
+ deviceAddress: string;
64
+ /** BluetoothGattCharacteristic 的uuid */
65
+ gattCharacteristicUuid: string;
66
+ /** 读取消息超时时间,单位毫秒.由于native读取ble消息是异步的。 */
67
+ timeout: number;
68
+ }
69
+ export interface ReadReply {
70
+ message: Uint8Array;
71
+ }
72
+ export interface DisconnectRequest {
73
+ /** 设备地址(mac) */
74
+ deviceAddress: string;
75
+ }
76
+ export interface DisconnectReply {
77
+ }
78
+ export interface PermissionStatusRequest {
79
+ }
80
+ export interface PermissionStatusReply {
81
+ status: PermissionGroupStatus;
82
+ }
83
+ export interface SubscribeCharacteristicNotificationRequest {
84
+ deviceAddress: string;
85
+ serviceId: string;
86
+ gattCharacteristicUuid: string;
87
+ /** 如果这个描述符号的uuid为空,那么将使用characteristic获取描述符号 */
88
+ uuidDescription: string;
89
+ }
90
+ export interface SubscribeCharacteristicNotificationResponse {
91
+ message: Uint8Array;
92
+ }
93
+ export declare const ScanBleRequest: {
94
+ encode(message: ScanBleRequest, writer?: _m0.Writer): _m0.Writer;
95
+ decode(input: _m0.Reader | Uint8Array, length?: number): ScanBleRequest;
96
+ fromJSON(object: any): ScanBleRequest;
97
+ toJSON(message: ScanBleRequest): unknown;
98
+ create<I extends {
99
+ serviceUuid?: string | undefined;
100
+ } & {
101
+ serviceUuid?: string | undefined;
102
+ } & { [K in Exclude<keyof I, "serviceUuid">]: never; }>(base?: I): ScanBleRequest;
103
+ fromPartial<I_1 extends {
104
+ serviceUuid?: string | undefined;
105
+ } & {
106
+ serviceUuid?: string | undefined;
107
+ } & { [K_1 in Exclude<keyof I_1, "serviceUuid">]: never; }>(object: I_1): ScanBleRequest;
108
+ };
109
+ export declare const BluetoothDevice: {
110
+ encode(message: BluetoothDevice, writer?: _m0.Writer): _m0.Writer;
111
+ decode(input: _m0.Reader | Uint8Array, length?: number): BluetoothDevice;
112
+ fromJSON(object: any): BluetoothDevice;
113
+ toJSON(message: BluetoothDevice): unknown;
114
+ create<I extends {
115
+ deviceName?: string;
116
+ deviceAddress?: string;
117
+ } & {
118
+ deviceName?: string;
119
+ deviceAddress?: string;
120
+ } & { [K in Exclude<keyof I, keyof BluetoothDevice>]: never; }>(base?: I): BluetoothDevice;
121
+ fromPartial<I_1 extends {
122
+ deviceName?: string;
123
+ deviceAddress?: string;
124
+ } & {
125
+ deviceName?: string;
126
+ deviceAddress?: string;
127
+ } & { [K_1 in Exclude<keyof I_1, keyof BluetoothDevice>]: never; }>(object: I_1): BluetoothDevice;
128
+ };
129
+ export declare const ConnectBleRequest: {
130
+ encode(message: ConnectBleRequest, writer?: _m0.Writer): _m0.Writer;
131
+ decode(input: _m0.Reader | Uint8Array, length?: number): ConnectBleRequest;
132
+ fromJSON(object: any): ConnectBleRequest;
133
+ toJSON(message: ConnectBleRequest): unknown;
134
+ create<I extends {
135
+ deviceAddress?: string;
136
+ mtu?: number | undefined;
137
+ } & {
138
+ deviceAddress?: string;
139
+ mtu?: number | undefined;
140
+ } & { [K in Exclude<keyof I, keyof ConnectBleRequest>]: never; }>(base?: I): ConnectBleRequest;
141
+ fromPartial<I_1 extends {
142
+ deviceAddress?: string;
143
+ mtu?: number | undefined;
144
+ } & {
145
+ deviceAddress?: string;
146
+ mtu?: number | undefined;
147
+ } & { [K_1 in Exclude<keyof I_1, keyof ConnectBleRequest>]: never; }>(object: I_1): ConnectBleRequest;
148
+ };
149
+ export declare const ConnectBleReply: {
150
+ encode(message: ConnectBleReply, writer?: _m0.Writer): _m0.Writer;
151
+ decode(input: _m0.Reader | Uint8Array, length?: number): ConnectBleReply;
152
+ fromJSON(object: any): ConnectBleReply;
153
+ toJSON(message: ConnectBleReply): unknown;
154
+ create<I extends {
155
+ services?: {
156
+ uuid?: string;
157
+ serviceType?: number;
158
+ gattCharacteristics?: {
159
+ uuid?: string;
160
+ properties?: number;
161
+ }[];
162
+ }[];
163
+ } & {
164
+ services?: {
165
+ uuid?: string;
166
+ serviceType?: number;
167
+ gattCharacteristics?: {
168
+ uuid?: string;
169
+ properties?: number;
170
+ }[];
171
+ }[] & ({
172
+ uuid?: string;
173
+ serviceType?: number;
174
+ gattCharacteristics?: {
175
+ uuid?: string;
176
+ properties?: number;
177
+ }[];
178
+ } & {
179
+ uuid?: string;
180
+ serviceType?: number;
181
+ gattCharacteristics?: {
182
+ uuid?: string;
183
+ properties?: number;
184
+ }[] & ({
185
+ uuid?: string;
186
+ properties?: number;
187
+ } & {
188
+ uuid?: string;
189
+ properties?: number;
190
+ } & { [K in Exclude<keyof I["services"][number]["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_1 in Exclude<keyof I["services"][number]["gattCharacteristics"], keyof {
191
+ uuid?: string;
192
+ properties?: number;
193
+ }[]>]: never; };
194
+ } & { [K_2 in Exclude<keyof I["services"][number], keyof BleService>]: never; })[] & { [K_3 in Exclude<keyof I["services"], keyof {
195
+ uuid?: string;
196
+ serviceType?: number;
197
+ gattCharacteristics?: {
198
+ uuid?: string;
199
+ properties?: number;
200
+ }[];
201
+ }[]>]: never; };
202
+ } & { [K_4 in Exclude<keyof I, "services">]: never; }>(base?: I): ConnectBleReply;
203
+ fromPartial<I_1 extends {
204
+ services?: {
205
+ uuid?: string;
206
+ serviceType?: number;
207
+ gattCharacteristics?: {
208
+ uuid?: string;
209
+ properties?: number;
210
+ }[];
211
+ }[];
212
+ } & {
213
+ services?: {
214
+ uuid?: string;
215
+ serviceType?: number;
216
+ gattCharacteristics?: {
217
+ uuid?: string;
218
+ properties?: number;
219
+ }[];
220
+ }[] & ({
221
+ uuid?: string;
222
+ serviceType?: number;
223
+ gattCharacteristics?: {
224
+ uuid?: string;
225
+ properties?: number;
226
+ }[];
227
+ } & {
228
+ uuid?: string;
229
+ serviceType?: number;
230
+ gattCharacteristics?: {
231
+ uuid?: string;
232
+ properties?: number;
233
+ }[] & ({
234
+ uuid?: string;
235
+ properties?: number;
236
+ } & {
237
+ uuid?: string;
238
+ properties?: number;
239
+ } & { [K_5 in Exclude<keyof I_1["services"][number]["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_6 in Exclude<keyof I_1["services"][number]["gattCharacteristics"], keyof {
240
+ uuid?: string;
241
+ properties?: number;
242
+ }[]>]: never; };
243
+ } & { [K_7 in Exclude<keyof I_1["services"][number], keyof BleService>]: never; })[] & { [K_8 in Exclude<keyof I_1["services"], keyof {
244
+ uuid?: string;
245
+ serviceType?: number;
246
+ gattCharacteristics?: {
247
+ uuid?: string;
248
+ properties?: number;
249
+ }[];
250
+ }[]>]: never; };
251
+ } & { [K_9 in Exclude<keyof I_1, "services">]: never; }>(object: I_1): ConnectBleReply;
252
+ };
253
+ export declare const BleService: {
254
+ encode(message: BleService, writer?: _m0.Writer): _m0.Writer;
255
+ decode(input: _m0.Reader | Uint8Array, length?: number): BleService;
256
+ fromJSON(object: any): BleService;
257
+ toJSON(message: BleService): unknown;
258
+ create<I extends {
259
+ uuid?: string;
260
+ serviceType?: number;
261
+ gattCharacteristics?: {
262
+ uuid?: string;
263
+ properties?: number;
264
+ }[];
265
+ } & {
266
+ uuid?: string;
267
+ serviceType?: number;
268
+ gattCharacteristics?: {
269
+ uuid?: string;
270
+ properties?: number;
271
+ }[] & ({
272
+ uuid?: string;
273
+ properties?: number;
274
+ } & {
275
+ uuid?: string;
276
+ properties?: number;
277
+ } & { [K in Exclude<keyof I["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_1 in Exclude<keyof I["gattCharacteristics"], keyof {
278
+ uuid?: string;
279
+ properties?: number;
280
+ }[]>]: never; };
281
+ } & { [K_2 in Exclude<keyof I, keyof BleService>]: never; }>(base?: I): BleService;
282
+ fromPartial<I_1 extends {
283
+ uuid?: string;
284
+ serviceType?: number;
285
+ gattCharacteristics?: {
286
+ uuid?: string;
287
+ properties?: number;
288
+ }[];
289
+ } & {
290
+ uuid?: string;
291
+ serviceType?: number;
292
+ gattCharacteristics?: {
293
+ uuid?: string;
294
+ properties?: number;
295
+ }[] & ({
296
+ uuid?: string;
297
+ properties?: number;
298
+ } & {
299
+ uuid?: string;
300
+ properties?: number;
301
+ } & { [K_3 in Exclude<keyof I_1["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_4 in Exclude<keyof I_1["gattCharacteristics"], keyof {
302
+ uuid?: string;
303
+ properties?: number;
304
+ }[]>]: never; };
305
+ } & { [K_5 in Exclude<keyof I_1, keyof BleService>]: never; }>(object: I_1): BleService;
306
+ };
307
+ export declare const BluetoothGattCharacteristic: {
308
+ encode(message: BluetoothGattCharacteristic, writer?: _m0.Writer): _m0.Writer;
309
+ decode(input: _m0.Reader | Uint8Array, length?: number): BluetoothGattCharacteristic;
310
+ fromJSON(object: any): BluetoothGattCharacteristic;
311
+ toJSON(message: BluetoothGattCharacteristic): unknown;
312
+ create<I extends {
313
+ uuid?: string;
314
+ properties?: number;
315
+ } & {
316
+ uuid?: string;
317
+ properties?: number;
318
+ } & { [K in Exclude<keyof I, keyof BluetoothGattCharacteristic>]: never; }>(base?: I): BluetoothGattCharacteristic;
319
+ fromPartial<I_1 extends {
320
+ uuid?: string;
321
+ properties?: number;
322
+ } & {
323
+ uuid?: string;
324
+ properties?: number;
325
+ } & { [K_1 in Exclude<keyof I_1, keyof BluetoothGattCharacteristic>]: never; }>(object: I_1): BluetoothGattCharacteristic;
326
+ };
327
+ export declare const WriteRequest: {
328
+ encode(message: WriteRequest, writer?: _m0.Writer): _m0.Writer;
329
+ decode(input: _m0.Reader | Uint8Array, length?: number): WriteRequest;
330
+ fromJSON(object: any): WriteRequest;
331
+ toJSON(message: WriteRequest): unknown;
332
+ create<I extends {
333
+ deviceAddress?: string;
334
+ gattCharacteristicUuid?: string;
335
+ message?: Uint8Array;
336
+ } & {
337
+ deviceAddress?: string;
338
+ gattCharacteristicUuid?: string;
339
+ message?: Uint8Array;
340
+ } & { [K in Exclude<keyof I, keyof WriteRequest>]: never; }>(base?: I): WriteRequest;
341
+ fromPartial<I_1 extends {
342
+ deviceAddress?: string;
343
+ gattCharacteristicUuid?: string;
344
+ message?: Uint8Array;
345
+ } & {
346
+ deviceAddress?: string;
347
+ gattCharacteristicUuid?: string;
348
+ message?: Uint8Array;
349
+ } & { [K_1 in Exclude<keyof I_1, keyof WriteRequest>]: never; }>(object: I_1): WriteRequest;
350
+ };
351
+ export declare const WriteReply: {
352
+ encode(message: WriteReply, writer?: _m0.Writer): _m0.Writer;
353
+ decode(input: _m0.Reader | Uint8Array, length?: number): WriteReply;
354
+ fromJSON(object: any): WriteReply;
355
+ toJSON(message: WriteReply): unknown;
356
+ create<I extends {
357
+ success?: boolean;
358
+ } & {
359
+ success?: boolean;
360
+ } & { [K in Exclude<keyof I, "success">]: never; }>(base?: I): WriteReply;
361
+ fromPartial<I_1 extends {
362
+ success?: boolean;
363
+ } & {
364
+ success?: boolean;
365
+ } & { [K_1 in Exclude<keyof I_1, "success">]: never; }>(object: I_1): WriteReply;
366
+ };
367
+ export declare const ReadRequest: {
368
+ encode(message: ReadRequest, writer?: _m0.Writer): _m0.Writer;
369
+ decode(input: _m0.Reader | Uint8Array, length?: number): ReadRequest;
370
+ fromJSON(object: any): ReadRequest;
371
+ toJSON(message: ReadRequest): unknown;
372
+ create<I extends {
373
+ deviceAddress?: string;
374
+ gattCharacteristicUuid?: string;
375
+ timeout?: number;
376
+ } & {
377
+ deviceAddress?: string;
378
+ gattCharacteristicUuid?: string;
379
+ timeout?: number;
380
+ } & { [K in Exclude<keyof I, keyof ReadRequest>]: never; }>(base?: I): ReadRequest;
381
+ fromPartial<I_1 extends {
382
+ deviceAddress?: string;
383
+ gattCharacteristicUuid?: string;
384
+ timeout?: number;
385
+ } & {
386
+ deviceAddress?: string;
387
+ gattCharacteristicUuid?: string;
388
+ timeout?: number;
389
+ } & { [K_1 in Exclude<keyof I_1, keyof ReadRequest>]: never; }>(object: I_1): ReadRequest;
390
+ };
391
+ export declare const ReadReply: {
392
+ encode(message: ReadReply, writer?: _m0.Writer): _m0.Writer;
393
+ decode(input: _m0.Reader | Uint8Array, length?: number): ReadReply;
394
+ fromJSON(object: any): ReadReply;
395
+ toJSON(message: ReadReply): unknown;
396
+ create<I extends {
397
+ message?: Uint8Array;
398
+ } & {
399
+ message?: Uint8Array;
400
+ } & { [K in Exclude<keyof I, "message">]: never; }>(base?: I): ReadReply;
401
+ fromPartial<I_1 extends {
402
+ message?: Uint8Array;
403
+ } & {
404
+ message?: Uint8Array;
405
+ } & { [K_1 in Exclude<keyof I_1, "message">]: never; }>(object: I_1): ReadReply;
406
+ };
407
+ export declare const DisconnectRequest: {
408
+ encode(message: DisconnectRequest, writer?: _m0.Writer): _m0.Writer;
409
+ decode(input: _m0.Reader | Uint8Array, length?: number): DisconnectRequest;
410
+ fromJSON(object: any): DisconnectRequest;
411
+ toJSON(message: DisconnectRequest): unknown;
412
+ create<I extends {
413
+ deviceAddress?: string;
414
+ } & {
415
+ deviceAddress?: string;
416
+ } & { [K in Exclude<keyof I, "deviceAddress">]: never; }>(base?: I): DisconnectRequest;
417
+ fromPartial<I_1 extends {
418
+ deviceAddress?: string;
419
+ } & {
420
+ deviceAddress?: string;
421
+ } & { [K_1 in Exclude<keyof I_1, "deviceAddress">]: never; }>(object: I_1): DisconnectRequest;
422
+ };
423
+ export declare const DisconnectReply: {
424
+ encode(_: DisconnectReply, writer?: _m0.Writer): _m0.Writer;
425
+ decode(input: _m0.Reader | Uint8Array, length?: number): DisconnectReply;
426
+ fromJSON(_: any): DisconnectReply;
427
+ toJSON(_: DisconnectReply): unknown;
428
+ create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): DisconnectReply;
429
+ fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): DisconnectReply;
430
+ };
431
+ export declare const PermissionStatusRequest: {
432
+ encode(_: PermissionStatusRequest, writer?: _m0.Writer): _m0.Writer;
433
+ decode(input: _m0.Reader | Uint8Array, length?: number): PermissionStatusRequest;
434
+ fromJSON(_: any): PermissionStatusRequest;
435
+ toJSON(_: PermissionStatusRequest): unknown;
436
+ create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): PermissionStatusRequest;
437
+ fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): PermissionStatusRequest;
438
+ };
439
+ export declare const PermissionStatusReply: {
440
+ encode(message: PermissionStatusReply, writer?: _m0.Writer): _m0.Writer;
441
+ decode(input: _m0.Reader | Uint8Array, length?: number): PermissionStatusReply;
442
+ fromJSON(object: any): PermissionStatusReply;
443
+ toJSON(message: PermissionStatusReply): unknown;
444
+ create<I extends {
445
+ status?: PermissionGroupStatus;
446
+ } & {
447
+ status?: PermissionGroupStatus;
448
+ } & { [K in Exclude<keyof I, "status">]: never; }>(base?: I): PermissionStatusReply;
449
+ fromPartial<I_1 extends {
450
+ status?: PermissionGroupStatus;
451
+ } & {
452
+ status?: PermissionGroupStatus;
453
+ } & { [K_1 in Exclude<keyof I_1, "status">]: never; }>(object: I_1): PermissionStatusReply;
454
+ };
455
+ export declare const SubscribeCharacteristicNotificationRequest: {
456
+ encode(message: SubscribeCharacteristicNotificationRequest, writer?: _m0.Writer): _m0.Writer;
457
+ decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeCharacteristicNotificationRequest;
458
+ fromJSON(object: any): SubscribeCharacteristicNotificationRequest;
459
+ toJSON(message: SubscribeCharacteristicNotificationRequest): unknown;
460
+ create<I extends {
461
+ deviceAddress?: string;
462
+ serviceId?: string;
463
+ gattCharacteristicUuid?: string;
464
+ uuidDescription?: string;
465
+ } & {
466
+ deviceAddress?: string;
467
+ serviceId?: string;
468
+ gattCharacteristicUuid?: string;
469
+ uuidDescription?: string;
470
+ } & { [K in Exclude<keyof I, keyof SubscribeCharacteristicNotificationRequest>]: never; }>(base?: I): SubscribeCharacteristicNotificationRequest;
471
+ fromPartial<I_1 extends {
472
+ deviceAddress?: string;
473
+ serviceId?: string;
474
+ gattCharacteristicUuid?: string;
475
+ uuidDescription?: string;
476
+ } & {
477
+ deviceAddress?: string;
478
+ serviceId?: string;
479
+ gattCharacteristicUuid?: string;
480
+ uuidDescription?: string;
481
+ } & { [K_1 in Exclude<keyof I_1, keyof SubscribeCharacteristicNotificationRequest>]: never; }>(object: I_1): SubscribeCharacteristicNotificationRequest;
482
+ };
483
+ export declare const SubscribeCharacteristicNotificationResponse: {
484
+ encode(message: SubscribeCharacteristicNotificationResponse, writer?: _m0.Writer): _m0.Writer;
485
+ decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeCharacteristicNotificationResponse;
486
+ fromJSON(object: any): SubscribeCharacteristicNotificationResponse;
487
+ toJSON(message: SubscribeCharacteristicNotificationResponse): unknown;
488
+ create<I extends {
489
+ message?: Uint8Array;
490
+ } & {
491
+ message?: Uint8Array;
492
+ } & { [K in Exclude<keyof I, "message">]: never; }>(base?: I): SubscribeCharacteristicNotificationResponse;
493
+ fromPartial<I_1 extends {
494
+ message?: Uint8Array;
495
+ } & {
496
+ message?: Uint8Array;
497
+ } & { [K_1 in Exclude<keyof I_1, "message">]: never; }>(object: I_1): SubscribeCharacteristicNotificationResponse;
498
+ };
499
+ export interface BleManager {
500
+ ScanBle(request: DeepPartial<ScanBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<BluetoothDevice>;
501
+ ConnectBle(request: DeepPartial<ConnectBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ConnectBleReply>;
502
+ Write(request: DeepPartial<WriteRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<WriteReply>;
503
+ Read(request: DeepPartial<ReadRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ReadReply>;
504
+ Disconnect(request: DeepPartial<DisconnectRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DisconnectReply>;
505
+ /**
506
+ * 这里为了临时解决ai浏览器目前无法通过js api 获取到客户端的权限授权状态。
507
+ * 目前支持三种状态的查询: 文件,蓝牙,联系人。客户端会自动处理权限的兼容性问题
508
+ * 仅android 平台可用
509
+ */
510
+ GetPermissionStatus(request: DeepPartial<PermissionStatusRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PermissionStatusReply>;
511
+ SubscribeCharacteristicNotification(request: DeepPartial<SubscribeCharacteristicNotificationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<SubscribeCharacteristicNotificationResponse>;
512
+ }
513
+ export declare class BleManagerClientImpl implements BleManager {
514
+ private readonly rpc;
515
+ constructor(rpc: Rpc);
516
+ ScanBle(request: DeepPartial<ScanBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<BluetoothDevice>;
517
+ ConnectBle(request: DeepPartial<ConnectBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ConnectBleReply>;
518
+ Write(request: DeepPartial<WriteRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<WriteReply>;
519
+ Read(request: DeepPartial<ReadRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ReadReply>;
520
+ Disconnect(request: DeepPartial<DisconnectRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<DisconnectReply>;
521
+ GetPermissionStatus(request: DeepPartial<PermissionStatusRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PermissionStatusReply>;
522
+ SubscribeCharacteristicNotification(request: DeepPartial<SubscribeCharacteristicNotificationRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<SubscribeCharacteristicNotificationResponse>;
523
+ }
524
+ export declare const BleManagerDesc: {
525
+ serviceName: string;
526
+ };
527
+ export declare const BleManagerScanBleDesc: UnaryMethodDefinitionish;
528
+ export declare const BleManagerConnectBleDesc: UnaryMethodDefinitionish;
529
+ export declare const BleManagerWriteDesc: UnaryMethodDefinitionish;
530
+ export declare const BleManagerReadDesc: UnaryMethodDefinitionish;
531
+ export declare const BleManagerDisconnectDesc: UnaryMethodDefinitionish;
532
+ export declare const BleManagerGetPermissionStatusDesc: UnaryMethodDefinitionish;
533
+ export declare const BleManagerSubscribeCharacteristicNotificationDesc: UnaryMethodDefinitionish;
534
+ interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
535
+ requestStream: any;
536
+ responseStream: any;
537
+ }
538
+ type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
539
+ interface Rpc {
540
+ unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
541
+ invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
542
+ }
543
+ export declare class GrpcWebImpl {
544
+ private host;
545
+ private options;
546
+ constructor(host: string, options: {
547
+ transport?: grpc.TransportFactory;
548
+ streamingTransport?: grpc.TransportFactory;
549
+ debug?: boolean;
550
+ metadata?: grpc.Metadata;
551
+ upStreamRetryCodes?: number[];
552
+ });
553
+ unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
554
+ invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
555
+ }
556
+ declare const tsProtoGlobalThis: any;
557
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
558
+ type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
559
+ [K in keyof T]?: DeepPartial<T[K]>;
560
+ } : Partial<T>;
561
+ export declare class GrpcWebError extends tsProtoGlobalThis.Error {
562
+ code: grpc.Code;
563
+ metadata: grpc.Metadata;
564
+ constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
565
+ }
566
+ export {};