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) 699 B
import { GeneralJWSInput, CryptoKey, KeyObject, JWK, VerifyOptions, GeneralVerifyResult, GenericGetKeyFunction, JWSHeaderParameters, FlattenedJWSInput, ResolvedKey } from '../../types.d.js'; interface GeneralVerifyGetKey extends GenericGetKeyFunction<JWSHeaderParameters, FlattenedJWSInput, CryptoKey | KeyObject | JWK | Uint8Array> { } declare function generalVerify(jws: GeneralJWSInput, key: CryptoKey | KeyObject | JWK | Uint8Array, options?: VerifyOptions): Promise<GeneralVerifyResult>; declare function generalVerify(jws: GeneralJWSInput, getKey: GeneralVerifyGetKey, options?: VerifyOptions): Promise<GeneralVerifyResult & ResolvedKey>; export { type GeneralVerifyGetKey, generalVerify };