import { CryptoProvider } from './crypto-provider'; /** * `CryptoProvider which uses the SubtleCrypto interface of the Web Crypto API. * * This only supports asynchronous operations. */ export declare class SubtleCryptoProvider extends CryptoProvider { subtleCrypto: SubtleCrypto; constructor(subtleCrypto?: SubtleCrypto); computeHMACSignature(_payload: string, _secret: string): string; /** @override */ computeHMACSignatureAsync(payload: string, secret: string): Promise; /** @override */ secureCompare(stringA: string, stringB: string): Promise; encrypt(plaintext: Uint8Array, key: Uint8Array, iv?: Uint8Array, aad?: Uint8Array): Promise<{ ciphertext: Uint8Array; iv: Uint8Array; tag: Uint8Array; }>; decrypt(ciphertext: Uint8Array, key: Uint8Array, iv: Uint8Array, tag: Uint8Array, aad?: Uint8Array): Promise; randomBytes(length: number): Uint8Array; }