import type * as t from '../types.d.ts'; /** JWS verification and JWT Claims Set validation options. */ export interface JWTVerifyOptions extends t.VerifyOptions, t.JWTClaimVerificationOptions { } /** * Resolves a JWT verification key. No token components have been authenticated when this function * is called. */ export interface JWTVerifyGetKey extends t.GetKeyFunction { } /** * Verifies a Compact JWS-formatted JWT and validates its Claims Set. * * @param key Public key or shared secret to verify the JWT with. See * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}. * @param options JWT Verification and JWT Claims Set validation options. */ export declare function jwtVerify(jwt: string | Uint8Array, key: t.KeyInput, options?: JWTVerifyOptions): Promise>; /** * Verifies the JWT signature and claims, returning the resolved key. * * @param getKey Function resolving a public key or shared secret to verify the JWT with. See * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}. * @param options JWT Verification and JWT Claims Set validation options. */ export declare function jwtVerify(jwt: string | Uint8Array, getKey: JWTVerifyGetKey, options?: JWTVerifyOptions): Promise & t.ResolvedKey>; /** * Accepts a key or key resolver. Use this overload when forwarding either form; the result includes * `key` only when a resolver was used. * * @param key Key, or function resolving a key, to verify the JWT with. See * {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}. * @param options JWT Verification and JWT Claims Set validation options. */ export declare function jwtVerify(jwt: string | Uint8Array, key: t.KeyInput | JWTVerifyGetKey, options?: JWTVerifyOptions): Promise & Partial>;