import { EventSubscription } from 'react-native'; import { TaplyticsNotificationListener } from './push.types'; /** * This method is used on iOS to register for push notifications from Taplytics. */ export declare const registerPushNotifications: () => void; /** * Use this method to subscriber to when Taplytics' push notifications are received. * * @param listener A method that gets triggered whenever a push notification is received. * The method receives an argument which is a notification object with a `tl_id` property, * and a `custom_data` object. * * @returns An event subscriber object is returned. Use the `remove` function to clean up the event listener. */ export declare const registerPushReceivedListener: (listener: TaplyticsNotificationListener) => EventSubscription; /** * Use this method to subscriber to when Taplytics' push notifications are opened. * * @param listener A method that gets triggered whenever a push notification is opened. * The method receives an argument which is a notification object with a `tl_id` property, * and a `custom_data` object. * * @returns An event subscriber object is returned. Use the `remove` function to clean up the event listener. */ export declare const registerPushOpenedListener: (listener: TaplyticsNotificationListener) => EventSubscription; /** * Use this method to subscriber to when Taplytics' push notifications are dismissed. * This method is only available on `android` devices. * * @param listener A method that gets triggered whenever a push notification is dismissed. * The method receives an argument which is a notification object with a `tl_id` property, * and a `custom_data` object. * * @returns An event subscriber object is returned. Use the `remove` function to clean up the event listener. */ export declare const registerPushDismissedListener: (listener: TaplyticsNotificationListener) => EventSubscription | undefined;