import { ErrorHandler } from '@angular/core'; import { AngularFireDatabase } from 'angularfire2/database'; import { IAuthStateDependentService, SimpleAuthService } from '../simple-auth-service/simple-auth.service'; import { Subscription } from 'rxjs/Subscription'; import { Ng2DeviceService } from 'ng2-device-detector'; import * as firebase from 'firebase'; export declare class CustomErrorHandler implements ErrorHandler, IAuthStateDependentService { private fdbPaths; private cer; private _angularFireDatabase; private _simpleAuthService; private _deviceService; private _userId; constructor(fdbPaths: any, cer: boolean, _angularFireDatabase: AngularFireDatabase, _simpleAuthService: SimpleAuthService, _deviceService: Ng2DeviceService); handleError(error: any | { api: boolean; error: any; }): void; buildSubscriptions(fbUser: firebase.User): Subscription[]; onLoggedOut(): void; private _sendError(error, isApi); private _detectBrowser(userAgentString); }