import { IInboxNotification } from './BatchInbox'; export declare class BatchInboxFetcher { private readonly identifier; constructor(identifier: string); /** * Destroys the fetcher. * * You'll usually want to use this when your component unmounts in order to free up memory. */ destroy(): Promise; /** * Returns whether there is more notification to fetch. */ hasMore(): Promise; /** * Marks all notifications as read. */ markAllNotificationsAsRead(): Promise; /** * Marks a notification as read. * * The notification must have been fetched by this fetcher before. * * @param notificationIdentifier The identifier of the notification to mark as read */ markNotificationAsRead(notificationIdentifier: string): Promise; /** * Marks a notification as deleted. * * The notification must have been fetched by this fetcher before. * * @param notificationIdentifier The identifier of the notification to mark as deleted */ markNotificationAsDeleted(notificationIdentifier: string): Promise; /** * Display the landing message attached to the notification. * * The notification must have been fetched by this fetcher before. * * @param notificationIdentifier The identifier of the notification to display */ displayNotificationLandingMessage(notificationIdentifier: string): Promise; /** * Sets whether the SDK should filter silent notifications (pushes that don't result in a message being * shown to the user). Default: true * * @param filterSilentNotifications Whether the SDK should filter silent notifications */ setFilterSilentNotifications(filterSilentNotifications: boolean): Promise; /** * Fetches new notifications (and resets pagination to 0). * * Usually used as an initial fetch and refresh method in an infinite list. */ fetchNewNotifications(): Promise<{ notifications: IInboxNotification[]; endReached: boolean; foundNewNotifications: boolean; }>; /** * Fetches the next page of notifications. * * Usually used as a "fetchMore" method in an infinite list. */ fetchNextPage(): Promise<{ notifications: IInboxNotification[]; endReached: boolean; }>; }