import { UnauthorizedException } from "@nestjs/common"; /** * Thrown when a magic link token is invalid (wrong audience, missing claims). * * Returns HTTP 401 Unauthorized. * * @example * ```typescript * if (payload.aud !== MAGIC_LINK_AUDIENCE) { * throw new InvalidMagicLinkTokenException('invalid audience') * } * ``` */ export declare class InvalidMagicLinkTokenException extends UnauthorizedException { readonly reason: string; /** * @param reason - Description of why the token is invalid */ constructor(reason: string); /** * Returns the error response body. * * @returns Object containing statusCode (401), message, reason, and error */ getResponse(): object; }