2023-01-02 16:00:42 -05:00
|
|
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
2021-02-26 12:06:26 -05:00
|
|
|
|
2021-12-09 17:12:21 -05:00
|
|
|
// deno-lint-ignore-file no-var
|
|
|
|
|
2021-02-26 12:06:26 -05:00
|
|
|
/// <reference no-default-lib="true" />
|
|
|
|
/// <reference lib="esnext" />
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2021-02-26 12:06:26 -05:00
|
|
|
declare var crypto: Crypto;
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface Algorithm {
|
2021-07-06 08:16:04 -04:00
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface KeyAlgorithm {
|
2021-07-06 08:16:04 -04:00
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare type AlgorithmIdentifier = string | Algorithm;
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare type KeyType = "private" | "public" | "secret";
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare type KeyUsage =
|
2021-07-06 08:16:04 -04:00
|
|
|
| "decrypt"
|
|
|
|
| "deriveBits"
|
|
|
|
| "deriveKey"
|
|
|
|
| "encrypt"
|
|
|
|
| "sign"
|
|
|
|
| "unwrapKey"
|
|
|
|
| "verify"
|
|
|
|
| "wrapKey";
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare type NamedCurve = string;
|
2021-07-06 08:16:04 -04:00
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaOtherPrimesInfo {
|
2021-08-27 07:19:41 -04:00
|
|
|
d?: string;
|
|
|
|
r?: string;
|
|
|
|
t?: string;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface JsonWebKey {
|
2021-08-27 07:19:41 -04:00
|
|
|
alg?: string;
|
|
|
|
crv?: string;
|
|
|
|
d?: string;
|
|
|
|
dp?: string;
|
|
|
|
dq?: string;
|
|
|
|
e?: string;
|
|
|
|
ext?: boolean;
|
|
|
|
k?: string;
|
|
|
|
key_ops?: string[];
|
|
|
|
kty?: string;
|
|
|
|
n?: string;
|
|
|
|
oth?: RsaOtherPrimesInfo[];
|
|
|
|
p?: string;
|
|
|
|
q?: string;
|
|
|
|
qi?: string;
|
|
|
|
use?: string;
|
|
|
|
x?: string;
|
|
|
|
y?: string;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface AesCbcParams extends Algorithm {
|
2021-10-11 10:37:51 -04:00
|
|
|
iv: BufferSource;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface AesGcmParams extends Algorithm {
|
2022-01-05 10:12:30 -05:00
|
|
|
iv: BufferSource;
|
|
|
|
additionalData?: BufferSource;
|
|
|
|
tagLength?: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface AesCtrParams extends Algorithm {
|
2022-01-03 06:27:28 -05:00
|
|
|
counter: BufferSource;
|
|
|
|
length: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface HmacKeyGenParams extends Algorithm {
|
2021-07-06 08:16:04 -04:00
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
|
length?: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface EcKeyGenParams extends Algorithm {
|
2021-07-06 08:16:04 -04:00
|
|
|
namedCurve: NamedCurve;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface EcKeyImportParams extends Algorithm {
|
2021-12-16 11:28:43 -05:00
|
|
|
namedCurve: NamedCurve;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface EcdsaParams extends Algorithm {
|
2021-07-06 08:16:04 -04:00
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaHashedImportParams extends Algorithm {
|
2021-09-14 09:21:20 -04:00
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaHashedKeyGenParams extends RsaKeyGenParams {
|
2021-07-06 08:16:04 -04:00
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaKeyGenParams extends Algorithm {
|
2021-07-06 08:16:04 -04:00
|
|
|
modulusLength: number;
|
|
|
|
publicExponent: Uint8Array;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaPssParams extends Algorithm {
|
2021-07-06 08:16:04 -04:00
|
|
|
saltLength: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaOaepParams extends Algorithm {
|
2021-08-24 15:59:02 -04:00
|
|
|
label?: Uint8Array;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface HmacImportParams extends Algorithm {
|
2021-08-03 15:24:02 -04:00
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
|
length?: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface EcKeyAlgorithm extends KeyAlgorithm {
|
2021-08-24 09:15:25 -04:00
|
|
|
namedCurve: NamedCurve;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface HmacKeyAlgorithm extends KeyAlgorithm {
|
2021-08-24 09:15:25 -04:00
|
|
|
hash: KeyAlgorithm;
|
|
|
|
length: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
|
2021-08-24 09:15:25 -04:00
|
|
|
hash: KeyAlgorithm;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface RsaKeyAlgorithm extends KeyAlgorithm {
|
2021-08-24 09:15:25 -04:00
|
|
|
modulusLength: number;
|
|
|
|
publicExponent: Uint8Array;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface HkdfParams extends Algorithm {
|
2021-09-12 17:02:49 -04:00
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
|
info: BufferSource;
|
|
|
|
salt: BufferSource;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface Pbkdf2Params extends Algorithm {
|
2021-09-12 17:02:49 -04:00
|
|
|
hash: HashAlgorithmIdentifier;
|
|
|
|
iterations: number;
|
|
|
|
salt: BufferSource;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface AesDerivedKeyParams extends Algorithm {
|
2021-10-12 06:39:46 -04:00
|
|
|
length: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface EcdhKeyDeriveParams extends Algorithm {
|
2021-10-08 11:29:36 -04:00
|
|
|
public: CryptoKey;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface AesKeyGenParams extends Algorithm {
|
2021-10-03 09:24:46 -04:00
|
|
|
length: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface AesKeyAlgorithm extends KeyAlgorithm {
|
2021-10-03 09:24:46 -04:00
|
|
|
length: number;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic
|
|
|
|
* key.
|
|
|
|
*
|
|
|
|
* @category Web Crypto API
|
|
|
|
*/
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface CryptoKey {
|
2021-07-06 08:16:04 -04:00
|
|
|
readonly algorithm: KeyAlgorithm;
|
|
|
|
readonly extractable: boolean;
|
|
|
|
readonly type: KeyType;
|
|
|
|
readonly usages: KeyUsage[];
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2021-07-06 08:16:04 -04:00
|
|
|
declare var CryptoKey: {
|
2023-07-03 14:36:55 -04:00
|
|
|
readonly prototype: CryptoKey;
|
|
|
|
new (): never;
|
2021-07-06 08:16:04 -04:00
|
|
|
};
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for
|
|
|
|
* an asymmetric cryptography algorithm, also known as a public-key algorithm.
|
|
|
|
*
|
|
|
|
* @category Web Crypto API
|
|
|
|
*/
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface CryptoKeyPair {
|
2021-07-06 08:16:04 -04:00
|
|
|
privateKey: CryptoKey;
|
|
|
|
publicKey: CryptoKey;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2021-07-06 08:16:04 -04:00
|
|
|
declare var CryptoKeyPair: {
|
2023-07-03 14:36:55 -04:00
|
|
|
readonly prototype: CryptoKeyPair;
|
|
|
|
new (): never;
|
2021-07-06 08:16:04 -04:00
|
|
|
};
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** This Web Crypto API interface provides a number of low-level cryptographic
|
|
|
|
* functions. It is accessed via the Crypto.subtle properties available in a
|
|
|
|
* window context (via Window.crypto).
|
|
|
|
*
|
|
|
|
* @category Web Crypto API
|
|
|
|
*/
|
2023-07-03 14:36:55 -04:00
|
|
|
declare interface SubtleCrypto {
|
2021-07-06 08:16:04 -04:00
|
|
|
generateKey(
|
|
|
|
algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
|
|
|
|
extractable: boolean,
|
|
|
|
keyUsages: KeyUsage[],
|
|
|
|
): Promise<CryptoKeyPair>;
|
|
|
|
generateKey(
|
2021-10-03 09:24:46 -04:00
|
|
|
algorithm: AesKeyGenParams | HmacKeyGenParams,
|
2021-07-06 08:16:04 -04:00
|
|
|
extractable: boolean,
|
|
|
|
keyUsages: KeyUsage[],
|
|
|
|
): Promise<CryptoKey>;
|
|
|
|
generateKey(
|
|
|
|
algorithm: AlgorithmIdentifier,
|
|
|
|
extractable: boolean,
|
|
|
|
keyUsages: KeyUsage[],
|
|
|
|
): Promise<CryptoKeyPair | CryptoKey>;
|
2021-08-27 07:19:41 -04:00
|
|
|
importKey(
|
|
|
|
format: "jwk",
|
|
|
|
keyData: JsonWebKey,
|
2021-12-16 11:28:43 -05:00
|
|
|
algorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| HmacImportParams
|
|
|
|
| RsaHashedImportParams
|
2022-03-11 09:05:40 -05:00
|
|
|
| EcKeyImportParams,
|
2021-08-27 07:19:41 -04:00
|
|
|
extractable: boolean,
|
|
|
|
keyUsages: KeyUsage[],
|
|
|
|
): Promise<CryptoKey>;
|
2021-08-03 15:24:02 -04:00
|
|
|
importKey(
|
2021-09-14 09:21:20 -04:00
|
|
|
format: Exclude<KeyFormat, "jwk">,
|
2021-08-03 15:24:02 -04:00
|
|
|
keyData: BufferSource,
|
2021-12-16 11:28:43 -05:00
|
|
|
algorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| HmacImportParams
|
|
|
|
| RsaHashedImportParams
|
2022-03-11 09:05:40 -05:00
|
|
|
| EcKeyImportParams,
|
2021-08-03 15:24:02 -04:00
|
|
|
extractable: boolean,
|
|
|
|
keyUsages: KeyUsage[],
|
|
|
|
): Promise<CryptoKey>;
|
2021-08-29 08:23:51 -04:00
|
|
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
|
|
exportKey(
|
|
|
|
format: Exclude<KeyFormat, "jwk">,
|
|
|
|
key: CryptoKey,
|
|
|
|
): Promise<ArrayBuffer>;
|
2021-07-06 08:16:04 -04:00
|
|
|
sign(
|
|
|
|
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
|
|
|
|
key: CryptoKey,
|
2021-07-26 08:00:19 -04:00
|
|
|
data: BufferSource,
|
2021-07-06 08:16:04 -04:00
|
|
|
): Promise<ArrayBuffer>;
|
2021-07-12 08:45:36 -04:00
|
|
|
verify(
|
2021-09-11 16:49:53 -04:00
|
|
|
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
|
2021-07-12 08:45:36 -04:00
|
|
|
key: CryptoKey,
|
2021-07-26 08:00:19 -04:00
|
|
|
signature: BufferSource,
|
|
|
|
data: BufferSource,
|
2021-07-12 08:45:36 -04:00
|
|
|
): Promise<boolean>;
|
2021-06-06 06:57:10 -04:00
|
|
|
digest(
|
|
|
|
algorithm: AlgorithmIdentifier,
|
2021-07-26 08:00:19 -04:00
|
|
|
data: BufferSource,
|
2021-06-06 06:57:10 -04:00
|
|
|
): Promise<ArrayBuffer>;
|
2021-08-24 15:59:02 -04:00
|
|
|
encrypt(
|
2022-01-03 06:27:28 -05:00
|
|
|
algorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| RsaOaepParams
|
|
|
|
| AesCbcParams
|
2022-01-05 10:12:30 -05:00
|
|
|
| AesGcmParams
|
2022-01-03 06:27:28 -05:00
|
|
|
| AesCtrParams,
|
2021-08-24 15:59:02 -04:00
|
|
|
key: CryptoKey,
|
|
|
|
data: BufferSource,
|
|
|
|
): Promise<ArrayBuffer>;
|
|
|
|
decrypt(
|
2022-01-03 06:27:28 -05:00
|
|
|
algorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| RsaOaepParams
|
|
|
|
| AesCbcParams
|
2022-01-14 03:48:53 -05:00
|
|
|
| AesGcmParams
|
2022-01-03 06:27:28 -05:00
|
|
|
| AesCtrParams,
|
2021-08-24 15:59:02 -04:00
|
|
|
key: CryptoKey,
|
|
|
|
data: BufferSource,
|
|
|
|
): Promise<ArrayBuffer>;
|
2021-09-12 17:02:49 -04:00
|
|
|
deriveBits(
|
2021-10-08 11:29:36 -04:00
|
|
|
algorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| HkdfParams
|
|
|
|
| Pbkdf2Params
|
|
|
|
| EcdhKeyDeriveParams,
|
2021-09-12 17:02:49 -04:00
|
|
|
baseKey: CryptoKey,
|
|
|
|
length: number,
|
|
|
|
): Promise<ArrayBuffer>;
|
2021-10-12 06:39:46 -04:00
|
|
|
deriveKey(
|
2022-06-30 01:53:05 -04:00
|
|
|
algorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| HkdfParams
|
|
|
|
| Pbkdf2Params
|
|
|
|
| EcdhKeyDeriveParams,
|
2021-10-12 06:39:46 -04:00
|
|
|
baseKey: CryptoKey,
|
|
|
|
derivedKeyType:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| AesDerivedKeyParams
|
|
|
|
| HmacImportParams
|
|
|
|
| HkdfParams
|
|
|
|
| Pbkdf2Params,
|
|
|
|
extractable: boolean,
|
|
|
|
keyUsages: KeyUsage[],
|
|
|
|
): Promise<CryptoKey>;
|
2021-10-01 05:39:49 -04:00
|
|
|
wrapKey(
|
|
|
|
format: KeyFormat,
|
|
|
|
key: CryptoKey,
|
|
|
|
wrappingKey: CryptoKey,
|
2022-01-10 23:44:47 -05:00
|
|
|
wrapAlgorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| RsaOaepParams
|
|
|
|
| AesCbcParams
|
|
|
|
| AesCtrParams,
|
2021-10-01 05:39:49 -04:00
|
|
|
): Promise<ArrayBuffer>;
|
2021-12-04 22:55:11 -05:00
|
|
|
unwrapKey(
|
|
|
|
format: KeyFormat,
|
|
|
|
wrappedKey: BufferSource,
|
|
|
|
unwrappingKey: CryptoKey,
|
|
|
|
unwrapAlgorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| RsaOaepParams
|
2022-01-10 23:44:47 -05:00
|
|
|
| AesCbcParams
|
|
|
|
| AesCtrParams,
|
2021-12-04 22:55:11 -05:00
|
|
|
unwrappedKeyAlgorithm:
|
|
|
|
| AlgorithmIdentifier
|
|
|
|
| HmacImportParams
|
2022-01-10 23:44:47 -05:00
|
|
|
| RsaHashedImportParams
|
2022-03-11 09:05:40 -05:00
|
|
|
| EcKeyImportParams,
|
2021-12-04 22:55:11 -05:00
|
|
|
extractable: boolean,
|
|
|
|
keyUsages: KeyUsage[],
|
|
|
|
): Promise<CryptoKey>;
|
2021-06-06 06:57:10 -04:00
|
|
|
}
|
|
|
|
|
2023-07-03 14:36:55 -04:00
|
|
|
/** @category Web Crypto API */
|
|
|
|
declare var SubtleCrypto: {
|
|
|
|
readonly prototype: SubtleCrypto;
|
|
|
|
new (): never;
|
|
|
|
};
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2021-07-06 08:16:04 -04:00
|
|
|
declare interface Crypto {
|
|
|
|
readonly subtle: SubtleCrypto;
|
|
|
|
getRandomValues<
|
|
|
|
T extends
|
|
|
|
| Int8Array
|
|
|
|
| Int16Array
|
|
|
|
| Int32Array
|
|
|
|
| Uint8Array
|
|
|
|
| Uint16Array
|
|
|
|
| Uint32Array
|
|
|
|
| Uint8ClampedArray
|
2022-06-02 09:15:46 -04:00
|
|
|
| BigInt64Array
|
2022-07-11 15:43:57 -04:00
|
|
|
| BigUint64Array,
|
2021-07-06 08:16:04 -04:00
|
|
|
>(
|
|
|
|
array: T,
|
|
|
|
): T;
|
|
|
|
randomUUID(): string;
|
|
|
|
}
|
|
|
|
|
2022-08-16 23:12:24 -04:00
|
|
|
/** @category Web Crypto API */
|
2023-07-03 14:36:55 -04:00
|
|
|
declare var Crypto: {
|
|
|
|
readonly prototype: Crypto;
|
|
|
|
new (): never;
|
2021-06-06 06:57:10 -04:00
|
|
|
};
|