UNPKG

@elemental-design/expo-notifications

Version:
9 lines (8 loc) 707 B
import { Subscription } from '@unimodules/core'; import { Notification, NotificationResponse } from './Notifications.types'; export declare const DEFAULT_ACTION_IDENTIFIER = "expo.modules.notifications.actions.DEFAULT"; export declare function addNotificationReceivedListener(listener: (event: Notification) => void): Subscription; export declare function addNotificationsDroppedListener(listener: () => void): Subscription; export declare function addNotificationResponseReceivedListener(listener: (event: NotificationResponse) => void): Subscription; export declare function removeNotificationSubscription(subscription: Subscription): void; export declare function removeAllNotificationListeners(): void;