import { VerifyOptions, SignOptions, DecodeOptions } from 'jsonwebtoken'; import { StdResponse } from '@digicroz/js-kit/std-response'; declare enum JwtErrorType { INVALID_TOKEN = "invalid_token", EXPIRED_TOKEN = "expired_token", MALFORMED_TOKEN = "malformed_token", VERIFICATION_FAILED = "verify_failed", SIGNING_FAILED = "sign_failed", INVALID_SECRET = "invalid_secret" } type JwtResult = StdResponse; interface JwtPayload { [key: string]: unknown; iat?: number; exp?: number; nbf?: number; iss?: string; sub?: string; aud?: string | string[]; jti?: string; } interface JwtVerifyOptions extends VerifyOptions { debug?: boolean; } type JwtSignOptions = SignOptions; type JwtDecodeOptions = DecodeOptions; export { type JwtDecodeOptions, JwtErrorType, type JwtPayload, type JwtResult, type JwtSignOptions, type JwtVerifyOptions };