@lingxia/types 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/automation/index.d.ts +15 -1
  2. package/dist/automation/index.d.ts.map +1 -1
  3. package/dist/error.d.ts +4 -3
  4. package/dist/error.d.ts.map +1 -1
  5. package/dist/error.js +2 -2
  6. package/dist/error.js.map +1 -1
  7. package/dist/esm/automation/index.js +12 -0
  8. package/dist/esm/automation/index.js.map +1 -0
  9. package/dist/esm/error.js +148 -0
  10. package/dist/esm/error.js.map +1 -0
  11. package/dist/esm/generated/error.js +44 -0
  12. package/dist/esm/generated/error.js.map +1 -0
  13. package/dist/esm/generated/i18n.js +167 -0
  14. package/dist/esm/generated/i18n.js.map +1 -0
  15. package/dist/esm/generated/logic.js +4 -0
  16. package/dist/esm/generated/logic.js.map +1 -0
  17. package/dist/esm/index.js +11 -0
  18. package/dist/esm/index.js.map +1 -0
  19. package/dist/esm/package.json +4 -0
  20. package/dist/esm/process.js +9 -0
  21. package/dist/esm/process.js.map +1 -0
  22. package/dist/{testing/public-api.mjs → esm/testing/public-api.js} +79 -20
  23. package/dist/esm/testing/public-api.js.map +1 -0
  24. package/dist/generated/error.d.ts +1 -1
  25. package/dist/generated/error.d.ts.map +1 -1
  26. package/dist/generated/logic-web.d.ts +124 -0
  27. package/dist/generated/logic.d.ts +320 -142
  28. package/dist/generated/logic.d.ts.map +1 -1
  29. package/dist/index.d.ts +20 -10
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +5 -6
  32. package/dist/index.js.map +1 -1
  33. package/dist/process.d.ts +2 -2
  34. package/dist/process.js +2 -2
  35. package/dist/testing/public-api.d.ts +66 -15
  36. package/dist/testing/public-api.d.ts.map +1 -1
  37. package/dist/testing/public-api.js +78 -20
  38. package/dist/testing/public-api.js.map +1 -1
  39. package/package.json +9 -93
  40. package/src/automation/index.ts +17 -1
  41. package/src/error.ts +4 -3
  42. package/src/generated/error.ts +1 -1
  43. package/src/generated/logic-web.d.ts +124 -0
  44. package/src/generated/logic.ts +348 -150
  45. package/src/index.ts +32 -11
  46. package/src/process.ts +2 -2
  47. package/src/testing/public-api.ts +90 -20
@@ -0,0 +1,4 @@
1
+ // Generated by rong-typegen from the lingxia module's Rust source.
2
+ // Do not edit by hand — run `npm run gen:logic` in packages/lingxia-types to regenerate.
3
+ export {};
4
+ //# sourceMappingURL=logic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logic.js","sourceRoot":"","sources":["../../../src/generated/logic.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,yFAAyF"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * LingXia TypeScript Definitions
3
+ *
4
+ * Type declarations for the LingXia JS API, driven by Rust implementation.
5
+ */
6
+ export * from './generated/logic.js';
7
+ export * from './error.js';
8
+ export * from './generated/error.js';
9
+ export * from './generated/i18n.js';
10
+ import './generated/logic.js';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAC;AAErC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": false
4
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * OS process capability for the Control app.
3
+ *
4
+ * Add `@lingxia/types/process` to the Logic tsconfig only when the host sets
5
+ * `capabilities.process: true` and the Control app declares the `process`
6
+ * security privilege. These declarations have no runtime payload.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=process.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.js","sourceRoot":"","sources":["../../src/process.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,6 +1,5 @@
1
1
  export const LX_API_NAMES = [
2
2
  'app',
3
- 'appearance',
4
3
  'automation',
5
4
  'chooseDirectory',
6
5
  'chooseFile',
@@ -67,19 +66,36 @@ export const LX_API_NAMES = [
67
66
  'vibrateShort',
68
67
  ];
69
68
  const HOST_APP_API = [
69
+ 'appearance',
70
70
  'autostart',
71
+ 'cache',
71
72
  'checkUpdate',
72
- 'envVersion',
73
+ 'control',
74
+ 'displayLanguage',
75
+ 'env',
73
76
  'exit',
74
77
  'getBaseInfo',
75
- 'onDisplayLanguageChange',
76
78
  'screenshot',
77
79
  'setBadge',
78
- 'setDisplayLanguage',
79
80
  ];
80
- const HOST_APP_RUNTIME_API = HOST_APP_API.filter((name) => name !== 'autostart');
81
+ // `autostart`, `control`, and `cache` are injected only where they apply, so a
82
+ // runtime walk of `lx.app` must not require them.
83
+ const HOST_APP_RUNTIME_API = HOST_APP_API.filter((name) => name !== 'autostart' && name !== 'control' && name !== 'cache');
81
84
  const AUTOSTART_API = ['isEnabled', 'setEnabled'];
82
- const APPEARANCE_API = ['get', 'set'];
85
+ const APP_CACHE_API = ['clear', 'size'];
86
+ const DISPLAY_LANGUAGE_API = ['get', 'watch'];
87
+ const CONTROL_API = ['appearance', 'displayLanguage'];
88
+ const CONTROL_DISPLAY_LANGUAGE_API = [
89
+ 'getPreference',
90
+ 'setPreference',
91
+ 'watchPreference',
92
+ ];
93
+ const APPEARANCE_API = ['get', 'watch'];
94
+ const CONTROL_APPEARANCE_API = [
95
+ 'getPreference',
96
+ 'setPreference',
97
+ 'watchPreference',
98
+ ];
83
99
  const NAVIGATION_BAR_API = ['update'];
84
100
  const TAB_BAR_API = ['update'];
85
101
  const TERMINAL_API = ['colorSchemes', 'fonts', 'settings', 'windows'];
@@ -114,7 +130,7 @@ const LX_FILE_API = [
114
130
  'stat',
115
131
  'text',
116
132
  ];
117
- const STORAGE_API = ['clear', 'delete', 'get', 'info', 'list', 'set'];
133
+ const STORAGE_API = ['clear', 'delete', 'get', 'has', 'info', 'list', 'set'];
118
134
  const UPDATE_MANAGER_API = ['applyUpdate', 'onUpdateFailed', 'onUpdateReady'];
119
135
  const VIDEO_CONTEXT_API = [
120
136
  'exitFullScreen',
@@ -138,6 +154,7 @@ const SHELL_DRIVER_API = ['pins', 'setPin'];
138
154
  const TERMINAL_DRIVER_API = ['input', 'newTab', 'setMaximized', 'snapshot', 'split'];
139
155
  const LXAPP_DRIVER_API = ['eval', 'info', 'nav', 'page', 'pages', 'surfaceLayout'];
140
156
  const LXAPP_MANAGER_API = [
157
+ 'applink',
141
158
  'close',
142
159
  'current',
143
160
  'list',
@@ -254,7 +271,6 @@ export const LX_RUNTIME_SURFACES = [
254
271
  optionalMembers: ['terminal'],
255
272
  properties: [
256
273
  'app',
257
- 'appearance',
258
274
  'env',
259
275
  'fs',
260
276
  'navigationBar',
@@ -270,7 +286,7 @@ export const LX_RUNTIME_SURFACES = [
270
286
  layer: 'logic',
271
287
  expression: 'lx.app',
272
288
  members: HOST_APP_RUNTIME_API,
273
- properties: ['envVersion'],
289
+ properties: ['appearance', 'displayLanguage', 'env'],
274
290
  },
275
291
  {
276
292
  name: 'lx.app.autostart',
@@ -280,11 +296,46 @@ export const LX_RUNTIME_SURFACES = [
280
296
  optional: true,
281
297
  },
282
298
  {
283
- name: 'lx.appearance',
299
+ name: 'lx.app.cache',
284
300
  layer: 'logic',
285
- expression: 'lx.appearance',
301
+ expression: 'lx.app.cache',
302
+ members: APP_CACHE_API,
303
+ optional: true,
304
+ },
305
+ {
306
+ name: 'lx.app.displayLanguage',
307
+ layer: 'logic',
308
+ expression: 'lx.app.displayLanguage',
309
+ members: DISPLAY_LANGUAGE_API,
310
+ },
311
+ {
312
+ name: 'lx.app.control',
313
+ layer: 'logic',
314
+ expression: 'lx.app.control',
315
+ members: CONTROL_API,
316
+ properties: CONTROL_API,
317
+ optional: true,
318
+ },
319
+ {
320
+ name: 'lx.app.control.displayLanguage',
321
+ layer: 'logic',
322
+ expression: 'lx.app.control?.displayLanguage',
323
+ members: CONTROL_DISPLAY_LANGUAGE_API,
324
+ optional: true,
325
+ },
326
+ {
327
+ name: 'lx.app.appearance',
328
+ layer: 'logic',
329
+ expression: 'lx.app.appearance',
286
330
  members: APPEARANCE_API,
287
331
  },
332
+ {
333
+ name: 'lx.app.control.appearance',
334
+ layer: 'logic',
335
+ expression: 'lx.app.control?.appearance',
336
+ members: CONTROL_APPEARANCE_API,
337
+ optional: true,
338
+ },
288
339
  {
289
340
  name: 'lx.navigationBar',
290
341
  layer: 'logic',
@@ -303,6 +354,7 @@ export const LX_RUNTIME_SURFACES = [
303
354
  expression: 'lx.terminal',
304
355
  members: TERMINAL_API,
305
356
  properties: TERMINAL_API,
357
+ optionalMembers: ['windows'],
306
358
  optional: true,
307
359
  },
308
360
  {
@@ -368,6 +420,10 @@ export const LX_RUNTIME_SURFACES = [
368
420
  layer: 'automation',
369
421
  expression: 'lx.automation()',
370
422
  members: AUTOMATION_API,
423
+ // The desktop tier is deliberately absent on mobile hosts. Keep the
424
+ // portable shape contract honest while the desktop entry covers it on
425
+ // Windows and macOS.
426
+ optionalMembers: ['desktop'],
371
427
  properties: ['browser', 'desktop', 'device', 'lxapps', 'shell', 'terminal'],
372
428
  },
373
429
  { name: 'ShellDriver', layer: 'automation', expression: 'lx.automation().shell', members: SHELL_DRIVER_API },
@@ -409,16 +465,17 @@ export const LX_RUNTIME_SURFACES = [
409
465
  layer: 'automation',
410
466
  expression: 'lx.automation().desktop',
411
467
  members: DESKTOP_DRIVER_API,
468
+ optional: true,
412
469
  properties: ['app', 'ax', 'clipboard', 'key', 'pointer', 'process', 'wait', 'window'],
413
470
  },
414
- { name: 'DesktopPointer', layer: 'automation', expression: 'lx.automation().desktop.pointer', members: DESKTOP_POINTER_API },
415
- { name: 'DesktopKey', layer: 'automation', expression: 'lx.automation().desktop.key', members: DESKTOP_KEY_API },
416
- { name: 'DesktopWindow', layer: 'automation', expression: 'lx.automation().desktop.window', members: DESKTOP_WINDOW_API },
417
- { name: 'DesktopClipboard', layer: 'automation', expression: 'lx.automation().desktop.clipboard', members: DESKTOP_CLIPBOARD_API },
418
- { name: 'DesktopAx', layer: 'automation', expression: 'lx.automation().desktop.ax', members: DESKTOP_AX_API },
419
- { name: 'DesktopWait', layer: 'automation', expression: 'lx.automation().desktop.wait', members: DESKTOP_WAIT_API },
420
- { name: 'DesktopApp', layer: 'automation', expression: 'lx.automation().desktop.app', members: DESKTOP_APP_API },
421
- { name: 'DesktopProcess', layer: 'automation', expression: 'lx.automation().desktop.process', members: DESKTOP_PROCESS_API },
471
+ { name: 'DesktopPointer', layer: 'automation', expression: 'lx.automation().desktop.pointer', members: DESKTOP_POINTER_API, optional: true },
472
+ { name: 'DesktopKey', layer: 'automation', expression: 'lx.automation().desktop.key', members: DESKTOP_KEY_API, optional: true },
473
+ { name: 'DesktopWindow', layer: 'automation', expression: 'lx.automation().desktop.window', members: DESKTOP_WINDOW_API, optional: true },
474
+ { name: 'DesktopClipboard', layer: 'automation', expression: 'lx.automation().desktop.clipboard', members: DESKTOP_CLIPBOARD_API, optional: true },
475
+ { name: 'DesktopAx', layer: 'automation', expression: 'lx.automation().desktop.ax', members: DESKTOP_AX_API, optional: true },
476
+ { name: 'DesktopWait', layer: 'automation', expression: 'lx.automation().desktop.wait', members: DESKTOP_WAIT_API, optional: true },
477
+ { name: 'DesktopApp', layer: 'automation', expression: 'lx.automation().desktop.app', members: DESKTOP_APP_API, optional: true },
478
+ { name: 'DesktopProcess', layer: 'automation', expression: 'lx.automation().desktop.process', members: DESKTOP_PROCESS_API, optional: true },
422
479
  ];
423
480
  /** Canonical identifiers used by behavioral automation coverage. */
424
481
  export const LX_RUNTIME_CAPABILITY_NAMES = LX_RUNTIME_SURFACES.flatMap(({ name, members }) => (members.map((member) => `${name}.${member}`)));
@@ -580,6 +637,8 @@ export const LX_REQUIRED_RUNTIME_SHAPE_NAMES = [
580
637
  .map((member) => `shape:${surface.name}.${member}`);
581
638
  }),
582
639
  ...LX_RETURNED_OBJECT_SURFACES
583
- .filter(({ fixture }) => fixture === 'runtime-safe')
640
+ .filter((surface) => surface.fixture === 'runtime-safe'
641
+ && !('optional' in surface && surface.optional))
584
642
  .flatMap(({ name, members }) => members.map((member) => `shape:${name}.${member}`)),
585
643
  ];
644
+ //# sourceMappingURL=public-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../src/testing/public-api.ts"],"names":[],"mappings":"AA0DA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,KAAK;IACL,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,aAAa;IACb,eAAe;IACf,eAAe;IACf,aAAa;IACb,oBAAoB;IACpB,cAAc;IACd,KAAK;IACL,uBAAuB;IACvB,IAAI;IACJ,kBAAkB;IAClB,eAAe;IACf,cAAc;IACd,aAAa;IACb,cAAc;IACd,gBAAgB;IAChB,eAAe;IACf,YAAY;IACZ,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,WAAW;IACX,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,YAAY;IACZ,eAAe;IACf,eAAe;IACf,2BAA2B;IAC3B,WAAW;IACX,SAAS;IACT,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,UAAU;IACV,cAAc;IACd,UAAU;IACV,YAAY;IACZ,wBAAwB;IACxB,wBAAwB;IACxB,UAAU;IACV,sBAAsB;IACtB,gBAAgB;IAChB,OAAO;IACP,OAAO;IACP,iBAAiB;IACjB,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,WAAW;IACX,qBAAqB;IACrB,UAAU;IACV,UAAU;IACV,SAAS;IACT,WAAW;IACX,QAAQ;IACR,UAAU;IACV,MAAM;IACN,YAAY;IACZ,aAAa;IACb,cAAc;CACN,CAAC;AAEX,MAAM,YAAY,GAAG;IACnB,YAAY;IACZ,WAAW;IACX,OAAO;IACP,aAAa;IACb,SAAS;IACT,iBAAiB;IACjB,KAAK;IACL,MAAM;IAC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I18nKey } from "./i18n.js";
2
2
  export declare const ERR_CODE_INFO_BY_CODE: {
3
3
  readonly 1000: {
4
4
  readonly code: 1000;
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/generated/error.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCxB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AACrG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/generated/error.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCxB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AACrG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB"}
@@ -286,6 +286,130 @@ declare var Response: {
286
286
 
287
287
  declare function fetch(url: RequestInfo | URL, options?: RequestInit): Promise<Response>;
288
288
 
289
+ type AlgorithmIdentifier = string | { name: string; [option: string]: any };
290
+ type BufferSource = ArrayBufferView | ArrayBuffer;
291
+ type KeyType = 'secret' | 'public' | 'private';
292
+ type KeyUsage =
293
+ | 'encrypt' | 'decrypt' | 'sign' | 'verify'
294
+ | 'deriveKey' | 'deriveBits' | 'wrapKey' | 'unwrapKey';
295
+ type KeyFormat = 'raw' | 'jwk';
296
+ type AesKeyLength = 128 | 192 | 256;
297
+
298
+ interface KeyAlgorithm { name: string }
299
+ interface HmacKeyAlgorithm extends KeyAlgorithm { hash: KeyAlgorithm; length: number }
300
+ interface AesKeyAlgorithm extends KeyAlgorithm { length: number }
301
+
302
+ interface JsonWebKey {
303
+ kty: string;
304
+ k?: string;
305
+ alg?: string;
306
+ ext?: boolean;
307
+ key_ops?: KeyUsage[];
308
+ }
309
+
310
+ interface CryptoKey {
311
+ readonly type: KeyType;
312
+ readonly extractable: boolean;
313
+ readonly algorithm: HmacKeyAlgorithm | AesKeyAlgorithm;
314
+ readonly usages: KeyUsage[];
315
+ }
316
+ declare var CryptoKey: { prototype: CryptoKey };
317
+
318
+ interface HmacKeyGenParams { name: 'HMAC'; hash: AlgorithmIdentifier; length?: number }
319
+ interface HmacImportParams { name: 'HMAC'; hash: AlgorithmIdentifier; length?: number }
320
+ interface AesKeyGenParams { name: 'AES-GCM' | 'AES-CBC'; length: AesKeyLength }
321
+ interface AesGcmParams {
322
+ name: 'AES-GCM';
323
+ /** 96-bit (12-byte) IVs only. */
324
+ iv: BufferSource;
325
+ additionalData?: BufferSource;
326
+ tagLength?: 128;
327
+ }
328
+ interface AesCbcParams { name: 'AES-CBC'; iv: BufferSource }
329
+ interface Pbkdf2Params {
330
+ name: 'PBKDF2';
331
+ salt: BufferSource;
332
+ iterations: number;
333
+ hash: AlgorithmIdentifier;
334
+ }
335
+ interface HkdfParams {
336
+ name: 'HKDF';
337
+ salt: BufferSource;
338
+ info: BufferSource;
339
+ hash: AlgorithmIdentifier;
340
+ }
341
+ type DeriveParams = Pbkdf2Params | HkdfParams;
342
+ type KeyGenParams = AesKeyGenParams | HmacKeyGenParams;
343
+
344
+ interface SubtleCrypto {
345
+ digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
346
+ generateKey(
347
+ algorithm: KeyGenParams,
348
+ extractable: boolean,
349
+ keyUsages: KeyUsage[],
350
+ ): Promise<CryptoKey>;
351
+ importKey(
352
+ format: 'raw',
353
+ keyData: BufferSource,
354
+ algorithm: AlgorithmIdentifier | HmacImportParams | AesKeyGenParams,
355
+ extractable: boolean,
356
+ keyUsages: KeyUsage[],
357
+ ): Promise<CryptoKey>;
358
+ importKey(
359
+ format: 'jwk',
360
+ keyData: JsonWebKey,
361
+ algorithm: AlgorithmIdentifier | HmacImportParams | AesKeyGenParams,
362
+ extractable: boolean,
363
+ keyUsages: KeyUsage[],
364
+ ): Promise<CryptoKey>;
365
+ exportKey(format: 'raw', key: CryptoKey): Promise<ArrayBuffer>;
366
+ exportKey(format: 'jwk', key: CryptoKey): Promise<JsonWebKey>;
367
+ sign(
368
+ algorithm: AlgorithmIdentifier,
369
+ key: CryptoKey,
370
+ data: BufferSource,
371
+ ): Promise<ArrayBuffer>;
372
+ verify(
373
+ algorithm: AlgorithmIdentifier,
374
+ key: CryptoKey,
375
+ signature: BufferSource,
376
+ data: BufferSource,
377
+ ): Promise<boolean>;
378
+ encrypt(
379
+ algorithm: AesGcmParams | AesCbcParams,
380
+ key: CryptoKey,
381
+ data: BufferSource,
382
+ ): Promise<ArrayBuffer>;
383
+ decrypt(
384
+ algorithm: AesGcmParams | AesCbcParams,
385
+ key: CryptoKey,
386
+ data: BufferSource,
387
+ ): Promise<ArrayBuffer>;
388
+ deriveBits(algorithm: DeriveParams, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
389
+ deriveKey(
390
+ algorithm: DeriveParams,
391
+ baseKey: CryptoKey,
392
+ derivedKeyType: KeyGenParams,
393
+ extractable: boolean,
394
+ keyUsages: KeyUsage[],
395
+ ): Promise<CryptoKey>;
396
+ }
397
+ declare var SubtleCrypto: { prototype: SubtleCrypto };
398
+
399
+ type IntegerTypedArray =
400
+ | Int8Array | Uint8Array | Uint8ClampedArray
401
+ | Int16Array | Uint16Array
402
+ | Int32Array | Uint32Array
403
+ | BigInt64Array | BigUint64Array;
404
+
405
+ interface Crypto {
406
+ readonly subtle: SubtleCrypto;
407
+ getRandomValues<T extends IntegerTypedArray>(array: T): T;
408
+ randomUUID(): string;
409
+ }
410
+ declare var Crypto: { prototype: Crypto };
411
+ declare var crypto: Crypto;
412
+
289
413
  interface Console {
290
414
  log(...args: any[]): void;
291
415
  error(...args: any[]): void;