import { Location } from '@angular/common'; import { Router } from '@angular/router'; import { Response } from '@angular/http'; import { Observable } from 'rxjs/Rx'; export declare class ErrorHandler { private router; private location; constructor(router: Router, location: Location); handle(err: Response | any, caught: any): Observable; private getServerErrorMessage(errorResponse); }