@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) • 652 B
TypeScript
import { FlattenedJWE, CryptoKey, KeyObject, JWK, DecryptOptions, FlattenedDecryptResult, GetKeyFunction, JWEHeaderParameters, ResolvedKey } from '../../types.d.js';
interface FlattenedDecryptGetKey extends GetKeyFunction<JWEHeaderParameters | undefined, FlattenedJWE> {
}
declare function flattenedDecrypt(jwe: FlattenedJWE, key: CryptoKey | KeyObject | JWK | Uint8Array, options?: DecryptOptions): Promise<FlattenedDecryptResult>;
declare function flattenedDecrypt(jwe: FlattenedJWE, getKey: FlattenedDecryptGetKey, options?: DecryptOptions): Promise<FlattenedDecryptResult & ResolvedKey>;
export { type FlattenedDecryptGetKey, flattenedDecrypt };