import { PushNotification } from './push-notification'; import { AuthorizedHttpClient } from '../utils/api-request'; import { ICatalystMobileNotification, ICatalystPushDetails } from '../utils/pojo/common'; /** * Catalyst Supported mobile platforms */ export declare enum MOBILE_PLATFORM { IOS = "ios", ANDROID = "android" } export declare class MobileNotification { _appId: string; requester: AuthorizedHttpClient; constructor(notificationInstance: PushNotification, id: string); /** * Send push notification to IOS mobile devices * @param notifyObj details about the notification * @param recipient Catalyst User Id or EmailId of the recipient * @returns { ICatalystMobileNotification } details of the sent notification */ sendIOSNotification(notifyObj: ICatalystPushDetails, recipient: string): Promise; /** * Send push notification to Android mobile devices * @param notifyObj details about the notification * @param recipient Catalyst User Id or EmailId of the recipient * @returns { ICatalystMobileNotification } details of the sent notification */ sendAndroidNotification(notifyObj: ICatalystPushDetails, recipient: string): Promise; /** * @deprecated Please use any of the alternatives from the list below * - {@link sendIOSNotification}: for IOS platform * - {@link sendAndroidNotification}: for Android platform * --- * Send push notification to IOS mobile devices * @param notifyObj details about the notification * @param recipient Catalyst User Id or EmailId of the recipient * @returns { ICatalystMobileNotification } details of the sent notification */ sendNotification(notifyObj: ICatalystPushDetails, recipient: string): Promise; /** * Send push notification to mobile devices * @param notifyObj details about the notification * @param recipient Catalyst User Id or EmailId of the recipient * @param platform mobile platform for which the notification should be sent (Default={@link MOBILE_PLATFORM.IOS}) * @returns { ICatalystMobileNotification } details of the sent notification */ notify(notifyObj: ICatalystPushDetails, recipient: string, platform?: MOBILE_PLATFORM): Promise; }