UNPKG

ts-jose

Version:

Wrap functions of JOSE in steady interface

9 lines (8 loc) 461 B
import { JWK } from './jwk.js'; import { JWKS } from './jwks.js'; import { JWEDecryptOptions, JWEEncryptOptions, KidOptions } from './types.js'; export declare class JWE { static decrypt(cypher: string, key: JWK | JWKS, options?: JWEDecryptOptions): Promise<string>; static encrypt(data: string, key: JWK | JWKS, options: JWEEncryptOptions): Promise<string>; static getKeyFrom(cypher: string, jwk: JWK | JWKS, options?: KidOptions): Promise<JWK>; }