/** Token signing algorithms supported by the JWS (Javascript Web Signing) specification, RFC 7515. * These are drawn from the JWA (JSON Web Algorithms) specification, RFC 7518. */ export declare enum JwtAlgorithms { /** HMAC using SHA-256. **Best default**. Support for this algorithm is REQUIRED by all supporting implementations. */ HS256 = 0, /** RSASSA PKCS1 v1.5 with SHA-256. Implementation support of this algorithm is recommended, not required. */ RS256 = 1, /** ECDSA using P-256 and SHA-256. Implementation support of this algorithm is recommended, not required. */ ES256 = 2, /** SHA-384 variation of the HS256 algorithm. Implementation support of this algorithm is optional. */ HS384 = 3, /** SHA-512 variation of the HS256 algorithm. Implementation support of this algorithm is optional. */ HS512 = 4, /** SHA-384 variation of the RS256 algorithm. Implementation support of this algorithm is optional. */ RS384 = 5, /** SHA-512 variation of the RS256 algorithm. Implementation support of this algorithm is optional. */ RS512 = 6, /** SHA-384 variation of the ES256 algorithm. Implementation support of this algorithm is optional. */ ES384 = 7, /** SHA-512 variation of the ES256 algorithm. Implementation support of this algorithm is optional. */ ES512 = 8, /** RSASSA-PSS + MGF1 with SHA256 */ PS256 = 9, /** SHA-384 variation of the PS256 algorithm */ PS384 = 10, /** SHA-512 variation of the PS256 algorithm */ PS512 = 11 } export declare class TokenHeader { /** Javascript Web Token. Creates the common case by default: { "alg": "HS256", "typ": "jwt" } */ constructor(alg?: JwtAlgorithms); /** The public conventional token header value specifying the "type" of token. */ typ: string; /** The algorithm to use in signature generation. */ alg: string; } export declare class TokenPayload { /** Just a simple key-value dictionary */ constructor(); [key: string]: any; } export declare class Token { payload: TokenPayload; signature?: string | undefined; /** A Javascript Web Token (JWT), with its constituent parts decoded. */ constructor(payload: TokenPayload, signature?: string | undefined, header?: TokenHeader); header: TokenHeader; }