import type { AESJsonWebKey } from '@masknet/shared-base' ; export interface AESMethods { generate_aes_gcm ( length ? ) : PromiseLike < AESJsonWebKey > ; encrypt_aes_gcm ( aes , iv , message ) : PromiseLike < ArrayBuffer > ; decrypt_aes_gcm ( aes , iv , message ) : PromiseLike < ArrayBuffer > ; aes_to_raw ( aes ) : PromiseLike < ArrayBuffer > ; raw_to_aes ( raw ) : PromiseLike < AESJsonWebKey > ; } export type AESName = 'AES-GCM' ;