1import { NativeModulesProxy, ProxyNativeModule } from '@unimodules/core'; 2 3export interface BaseNotificationBehavior { 4 shouldShowAlert: boolean; 5 shouldPlaySound: boolean; 6 shouldSetBadge: boolean; 7} 8 9export interface AndroidNotificationBehavior extends BaseNotificationBehavior { 10 priority?: 'min' | 'low' | 'default' | 'high' | 'max'; 11} 12 13export interface IosNotificationBehavior extends BaseNotificationBehavior {} 14 15export type NativeNotificationBehavior = AndroidNotificationBehavior | IosNotificationBehavior; 16 17export interface NotificationsHandlerModule extends ProxyNativeModule { 18 handleNotificationAsync: ( 19 notificationId: string, 20 notificationBehavior: NativeNotificationBehavior 21 ) => Promise<void>; 22} 23 24export default (NativeModulesProxy.ExpoNotificationsHandlerModule as any) as NotificationsHandlerModule; 25