import jwt, { DecodeOptions, Secret, SignOptions, VerifyOptions } from 'jsonwebtoken'; export interface IJwtExtended { ver: number; jti: string; iss: string; aud: string; iat: number; exp: number; cid: string; uid: string; scp: string[]; auth_time: number; sub: string; birthdate: string; 'com.mgm.emailVerified': boolean; groups: string[]; given_name: string; 'com.mgm.id': string; mgm_role: 'guest'; 'com.mgm.identity.verified': boolean; name: string; 'com.mgm.loyalty.perpetual_eligible': boolean; phone_number: string; mlife: string; 'com.mgm.gse.id': string; 'com.mgm.loyalty.perpetual_eligible_properties': []; family_name: string; 'com.mgm.loyalty.freeplay_available': boolean; email: string; 'com.mgm.mlife_number': string; } export declare function JwtDecodeMgm(token: string): IJwtExtended; export declare function JwtRetrievePlayerId(token: string): string; /** * Synchronously sign the given payload into a JSON Web Token string * payload - Payload to sign, could be an literal, buffer or string * secretOrPrivateKey - Either the secret for HMAC algorithms, or the PEM encoded private key for RSA and ECDSA. * [options] - Options for the signature * returns - The JSON Web Token string */ export declare function JwtDecode(token: string, options?: DecodeOptions | undefined): string | jwt.JwtPayload | null; /** * Synchronously sign the given payload into a JSON Web Token string * payload - Payload to sign, could be an literal, buffer or string * secretOrPrivateKey - Either the secret for HMAC algorithms, or the PEM encoded private key for RSA and ECDSA. * [options] - Options for the signature * returns - The JSON Web Token string */ export declare function JwtSign(payload: string | object | Buffer, secretOrPrivateKey: string, options?: SignOptions | undefined): string; /** * Synchronously verify given token using a secret or a public key to get a decoded token * token - JWT string to verify * secretOrPublicKey - Either the secret for HMAC algorithms, or the PEM encoded public key for RSA and ECDSA. * [options] - Options for the verification * returns - The decoded token. */ export declare function JwtVerify(token: string, secretOrPublicKey: Secret, options?: VerifyOptions | undefined): string | jwt.JwtPayload | jwt.Jwt; //# sourceMappingURL=jwt.d.mts.map