import type { TransportResponse } from './model'; export declare class TransportError extends Error { readonly status: number; readonly details?: T | undefined; constructor(message: string, status: number, details?: T | undefined); } export declare class BadRequestError extends TransportError { constructor(message?: string, details?: T); } export declare class UnauthorizedError extends TransportError { constructor(message?: string, details?: T); } export declare class PaymentRequiredError extends TransportError { constructor(message?: string, details?: T); } export declare class ForbiddenError extends TransportError { constructor(message?: string, details?: T); } export declare class NotFoundError extends TransportError { constructor(message?: string, details?: T); } export declare class InternalServerError extends TransportError { constructor(message?: string, details?: T); } export declare class BadGatewayError extends TransportError { constructor(message?: string, details?: T); } export declare class ServiceUnavailableError extends TransportError { constructor(message?: string, details?: T); } export declare class GatewayTimeoutError extends TransportError { constructor(message?: string, details?: T); } export declare function errorHandler(response: TransportResponse): TransportResponse;