import { ApiResponse, STATUS_CODE_BASE } from './protocol'; export interface ErrorResponse extends ApiResponse { errorDescription?: string; errorStack?: string; message: string; status: number; statusName: string; } export declare class RequestError { static internal(err: RequestError | Error): RequestError; static standardError(code: STATUS_CODE_BASE | number, extraMessage: Error | string): RequestError; private _errorDesc; private _friendlyMessage; protected err_code: number; protected error: Error; constructor(code: STATUS_CODE_BASE | number, message: string, e?: Error); response(): ErrorResponse; toJSON(): ErrorResponse; private _stack; stack: string; readonly code: number; readonly message: string; }