/** * JWT Algorithm types and constants */ export type JWTAlgorithm = 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512'; /** * Supported JWT signing algorithms */ export declare const JWT_ALGORITHMS: { readonly HS256: "HS256"; readonly HS384: "HS384"; readonly HS512: "HS512"; readonly RS256: "RS256"; readonly RS384: "RS384"; readonly RS512: "RS512"; readonly ES256: "ES256"; readonly ES384: "ES384"; readonly ES512: "ES512"; readonly PS256: "PS256"; readonly PS384: "PS384"; readonly PS512: "PS512"; }; /** * Check if algorithm requires asymmetric keys */ export declare function isAsymmetricAlgorithm(algorithm: JWTAlgorithm): boolean; /** * Check if algorithm is ECDSA (Elliptic Curve) */ export declare function isECDSAAlgorithm(algorithm: JWTAlgorithm): boolean; /** * Check if algorithm is RSA */ export declare function isRSAAlgorithm(algorithm: JWTAlgorithm): boolean; /** * Check if algorithm is HMAC (symmetric) */ export declare function isHMACAlgorithm(algorithm: JWTAlgorithm): boolean; /** * Default algorithms for different key types */ export declare const DEFAULT_ALGORITHMS: { readonly SYMMETRIC: "HS256"; readonly ASYMMETRIC_RSA: "RS256"; readonly ASYMMETRIC_ECDSA: "ES256"; };