export declare class HttpError<TCode extends number = number> extends Error {
    readonly cause?: Error;
    readonly statusCode: TCode;
    readonly message: string;
    readonly url: string | undefined;
    readonly method: string | undefined;
    readonly data?: Record<string, unknown>;
    constructor(opts: {
        url?: string;
        method?: string;
        message?: string;
        statusCode: TCode;
        cause?: Error;
        data?: Record<string, unknown>;
    });
    static fromRequest(request: Request, response: Response, parsedError: Record<string, unknown>): HttpError<number>;
}
//# sourceMappingURL=http-error.d.ts.map