import { Injector } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; export declare class ErrorsService { private injector; constructor(injector: Injector); /** * Logging error to console and Sentry * @name log * @param error */ log(error: Error | HttpErrorResponse): void; /** * Add extra info about error * @param error * @returns returns an object representing error with context */ addContextInfo(error: Error | HttpErrorResponse): { name: string; user: string; time: Date; url: string; status: number; message: string; stack: any; }; }