import { BaseError } from "@webiny/feature/api"; /** * Base class for all authentication-related errors */ export declare abstract class AuthenticationError extends BaseError { protected constructor(message: string); static from(error: any): AuthenticationError; } /** * Thrown when a JWT token has expired */ export declare class TokenExpiredError extends AuthenticationError { readonly code: "Authentication/TokenExpired"; constructor(message?: string); } /** * Thrown when a JWT token is not yet valid (nbf claim) */ export declare class TokenNotYetValidError extends AuthenticationError { readonly code: "Authentication/TokenNotYetValid"; constructor(message?: string); } /** * Thrown when a JWT token has an invalid signature */ export declare class InvalidTokenSignatureError extends AuthenticationError { readonly code: "Authentication/InvalidSignature"; constructor(message?: string); } /** * Thrown when a JWT token is malformed or invalid */ export declare class InvalidTokenError extends AuthenticationError { readonly code: "Authentication/InvalidToken"; constructor(message?: string); } /** * Thrown when the JWT audience claim doesn't match expected value */ export declare class InvalidAudienceError extends AuthenticationError { readonly code: "Authentication/InvalidAudience"; constructor(message?: string); } /** * Thrown when the JWT issuer claim doesn't match expected value */ export declare class InvalidIssuerError extends AuthenticationError { readonly code: "Authentication/InvalidIssuer"; constructor(message?: string); } /** * Thrown when a required JWT claim is missing */ export declare class MissingClaimError extends AuthenticationError { readonly code: "Authentication/MissingClaim"; constructor(claim: string); } /** * Generic authentication failure error */ export declare class AuthenticationFailedError extends AuthenticationError { readonly code: "Authentication/Failed"; constructor(message?: string); }