import type { VovkErrorResponse } from '../types/core.js'; import { HttpStatus } from '../types/enums.js'; export declare function withResponseCause(error: T, cause: unknown): T; export declare function getResponseCause(error: unknown): unknown; /** * HTTP exception with a status code and message. * @example * ```ts * throw new HttpException(HttpStatus.BAD_REQUEST, 'Invalid request data'); * ``` */ export declare class HttpException extends Error { statusCode: HttpStatus; message: string; cause?: unknown; constructor(statusCode: HttpStatus, message: string, cause?: unknown); toJSON(): VovkErrorResponse; } export declare function isHttpException(error: unknown): error is HttpException; export declare function toResponseStatus(statusCode: unknown): HttpStatus;