// @ts-ignore import { FirebaseMessagingTypes } from '@react-native-firebase/messaging' import { FunctionType } from '@codeleap/types' export type Message = FirebaseMessagingTypes.RemoteMessage export type NotificationType = 'foreground' | 'background' | 'press' | 'initial' export type NotificationHandler = FunctionType<[notification: N, type: NotificationType], void> export type TNotification = { data: N type: NotificationType } export type NotificationInitializeCallback = ( deviceToken: string, ) => void export type NotificationManagerOptions = { debug?: boolean slackDebug?: boolean handleInitialNotification?: boolean, parser?: (message: Message) => N }