import { WrappingError } from "./Utils.js"; export declare abstract class HttpError extends WrappingError { readonly instructions: string; protected constructor(message: string, instructions: string, cause?: Error); get name(): string; abstract get errorCode(): number; } export declare class BadRequestError extends HttpError { readonly url: string; constructor(message: string, instructions: string, url: string, cause?: Error); get errorCode(): number; } export declare class UnauthorizedHttpError extends BadRequestError { constructor(message: string, url: string, cause?: Error); get errorCode(): number; } export declare class ForbiddenHttpError extends BadRequestError { constructor(thing: string, url: string, cause?: Error); get errorCode(): number; } export declare class NotFoundHttpError extends BadRequestError { constructor(thing: string, url: string, cause?: Error); get errorCode(): number; } export declare class TooManyRequestsHttpError extends BadRequestError { constructor(retryIn: number, jailName: string, cause?: Error); get errorCode(): number; } export declare class ServerError extends HttpError { constructor(message: string, cause?: Error); get errorCode(): number; } export declare class ServiceUnavailableHttpError extends ServerError { get errorCode(): number; }