import { JWTPayload } from "did-jwt"; export declare namespace JWT { interface Header { typ: string; alg: string; [key: string]: any; } type Payload = JWTPayload; interface DecodedObj { header: Header; payload: Payload; signature: string; data: string; } enum Claims { iss = "iss", sub = "sub", aud = "aud", nbf = "nbf", exp = "exp", iat = "iat", jti = "jti" } /** * decode a JWT into its parts * TODO move this to JWT component - needs removing from JWTCredential first * * @param jws * @returns */ const decode: (jws: string) => DecodedObj; }