declare var SmartechPushReact: { SmartechNotificationReceived: string; addListener: (eventName: string, handler: (data: any) => void) => import("react-native").EmitterSubscription | undefined; removeListener: (eventName: string) => void; /** * Exposed method to request the Notification Permission * @param : Callback interface for getting status of Notification permission. */ requestNotificationPermission: (callback: ((err: any, res: any) => void) | null) => void; /** * Exposed method to update the Notification Permission status * @param pnPermissionStatus: status of permission either enabled (1) or * disabled (0) */ updateNotificationPermission: (pnPermissionStatus: number) => void; /** * This method is used to opt push notifications. * If you call this method then we will opt in or opt out the user of recieving push notifications. */ optPushNotification: (isPushNotificationOpted: boolean) => void; /** * This method is used to get the current status of opt push notification. * If you call this method you will get the current status of the tracking which can be used to render the UI at app level. */ hasOptedPushNotification: (callback: ((err: any, res: any) => void) | null) => void; /** * This method is used to get the device push token used by Smartech SDK. * If you call this method you will get the device push token which is used for sending push notification. */ getDevicePushToken: (callback: ((err: any, res: any) => void) | null) => void; /** * This method is used to set the device push token used by Smartech SDK. * If you call this method you will set the device push token which is used for sending push notification. */ setDevicePushToken: (token: string) => void; /** * This method is used to handle notification by Smartech SDK. */ handlePushNotification: (notificationData: object, callback: ((err: any, res: any) => void) | null) => void; registerForPushNotificationWithAuthorizationOptions: (alert: boolean, withBadge: boolean, andSound: boolean) => void; }; export default SmartechPushReact;