export interface IFirebase { sendPushNotification(obj: NotificationParams): any; sendToTopic(params: SendToTopicParams): any; subscribeToTopic(params: SubscribeParams): any; unsubscribeFromTopic(params: SubscribeParams): any; sendAll(obj: SendAllParams[]): any; } export interface NotificationParams { token?: string; tokens?: string[]; notification: { title: string; body: string; }; data?: object; apns?: object; } export interface SendToTopicParams { topic: string; payload: object; } export interface SubscribeParams { tokens: string[]; topic: string; } export interface SendAllParams { topic?: string; token?: string; condition?: string; notification: object; }