UNPKG

@gaonengwww/jose

Version:

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes

9 lines (6 loc) 631 B
import { GeneralJWE, CryptoKey, KeyObject, JWK, DecryptOptions, GeneralDecryptResult, GetKeyFunction, JWEHeaderParameters, FlattenedJWE, ResolvedKey } from '../../types.d.cjs'; interface GeneralDecryptGetKey extends GetKeyFunction<JWEHeaderParameters, FlattenedJWE> { } declare function generalDecrypt(jwe: GeneralJWE, key: CryptoKey | KeyObject | JWK | Uint8Array, options?: DecryptOptions): Promise<GeneralDecryptResult>; declare function generalDecrypt(jwe: GeneralJWE, getKey: GeneralDecryptGetKey, options?: DecryptOptions): Promise<GeneralDecryptResult & ResolvedKey>; export { type GeneralDecryptGetKey, generalDecrypt };