export declare type PEM = string; export declare type ExportedKey = JsonWebKey | PEM; export interface KeyEncoder { encode(key: CryptoKey): Promise; decode(key: ExportedKey, algorithm: RsaHashedImportParams | AesKeyAlgorithm, usages: KeyUsage[], extractable: boolean): Promise; } export declare function KeyEncoder(): KeyEncoder;