import { IOperation } from '../operation/base'; import { Verb } from '../operation/http'; /** * Thrown when an operation was not invoked successfully. */ export declare class OperationInvocationError> extends Error { readonly message: string; readonly operation: TOperation; readonly request: TRequest; readonly cause?: any; constructor(message: string, operation: TOperation, request: TRequest, cause?: any); } /** * Thrown when an http response is deemed to be unworkable. */ export declare class HttpResponseError extends Error { readonly verb: Verb; body: string; headers: Record; statusCode: number; statusText: string; url: string; constructor(response: Response, verb: Verb); }