import { Subscription } from 'rxjs'; import { Observable } from 'rxjs/Observable'; import { AngularFireDatabase } from 'angularfire2/database'; import { IFirebaseUserPlan, IUserPlan } from './user-plans'; import { IAuthStateDependentService, SimpleAuthService } from '@capellasolutions/zwp-modules/auth'; import * as firebase from 'firebase'; export declare class FirebaseUserPlansService implements IAuthStateDependentService { private fdbPaths; private _simpleAuthService; private _angularFireDatabase; userPlans: Observable; pendingUserPlans: Observable; private _userPlansSubject; private _pendingUserPlansSubject; constructor(fdbPaths: any, _simpleAuthService: SimpleAuthService, _angularFireDatabase: AngularFireDatabase); buildSubscriptions(fbUser: firebase.User): Array; onLoggedOut(): void; addUserPlan(userId: string, userPlan: IFirebaseUserPlan): Promise; updateUserPlan(userId: string, key: string, userPlan: IUserPlan): Promise; updatePendingUserPlan(userId: string, key: string, userPlan: IFirebaseUserPlan): Promise; deletePendingUserPlan(userId: string, key: string): Promise; }