import type { TurboModule } from 'react-native/Libraries/TurboModule/RCTExport'; import { TurboModuleRegistry } from 'react-native'; export interface Spec extends TurboModule { readonly getConstants: () => { // You can expose constants here, if SmartechNotificationReceived is a constant string SmartechNotificationReceived: string; }; requestNotificationPermission(callback: (err: Object | null, res: Object | null) => void): void; updateNotificationPermission(pnPermissionStatus: number): void; optPushNotification(isPushNotificationOpted: boolean): void; hasOptedPushNotification(callback: (err: Object | null, res: boolean | null) => void): void; getDevicePushToken(callback: (err: Object | null, res: string | null) => void): void; setDevicePushToken(token: string): void; handlePushNotification(notificationData: string, callback: (err: Object | null, res: Object | null) => void): void; registerForPushNotificationWithAuthorizationOptions(alert: boolean, withBadge: boolean, andSound: boolean): void; addListener: (eventType: string) => void; removeListeners: (count: number) => void; } export default TurboModuleRegistry.getEnforcing('SmartechPushReactNative');