import { type EmitterSubscription } from 'react-native'; import type { NotificareInboxItem } from './models/notificare-inbox-item'; import type { NotificareNotification } from 'react-native-notificare'; export declare class NotificareInbox { private static readonly eventEmitter; /** * @returns {Promise} - A promise that resolves to a * list of all {@link NotificareInboxItem}, sorted by the timestamp. */ static getItems(): Promise; /** * @returns {Promise} - A promise that resolves to the current badge * count, representing the number of unread inbox items. */ static getBadge(): Promise; /** * Refreshes the inbox data, ensuring the items and badge count reflect the * latest server state. * * @returns {Promise} - A promise that resolves when the inbox data has * been successfully refreshed. */ static refresh(): Promise; /** * Opens a specified inbox item, marking it as read and returning the * associated notification. * * @param {NotificareInboxItem} item - The {@link NotificareInboxItem} to open. * @return {Promise} - A promise that resolves to the * {@link NotificareNotification} associated with the inbox item. */ static open(item: NotificareInboxItem): Promise; /** * Marks the specified inbox item as read. * * @param {NotificareInboxItem} item - The {@link NotificareInboxItem} to mark * as read. * @returns {Promise} - A promise that resolves when the inbox item has * been successfully marked as read. */ static markAsRead(item: NotificareInboxItem): Promise; /** * Marks all inbox items as read. * * @returns {Promise} - A promise that resolves when all inbox items * have been successfully marked as read. */ static markAllAsRead(): Promise; /** * Permanently removes the specified inbox item from the inbox. * * @param {NotificareInboxItem} item - The {@link NotificareInboxItem} to remove. * @returns {Promise} - A promise that resolves when the inbox item has * been successfully removed. */ static remove(item: NotificareInboxItem): Promise; /** * Clears all inbox items, permanently deleting them from the inbox. * * @returns {Promise} - A promise that resolves when all inbox items * have been successfully cleared. */ static clear(): Promise; /** * Called when the inbox is successfully updated. * * @param callback - A callback that will be invoked with the result of the * onInboxUpdated event. It will provide an updated list of * {@link NotificareInboxItem}. * @returns {EmitterSubscription} - The {@link EmitterSubscription} for the * onInboxUpdated event. */ static onInboxUpdated(callback: (items: NotificareInboxItem[]) => void): EmitterSubscription; /** * Called when the unread message count badge is updated. * * @param callback - A callback that will be invoked with the * result of the onBadgeUpdated event. It will provide an updated badge count, * representing current the number of unread inbox items. * @returns {EmitterSubscription} - The {@link EmitterSubscription} for the * onBadgeUpdated event. */ static onBadgeUpdated(callback: (badge: number) => void): EmitterSubscription; } //# sourceMappingURL=notificare-inbox.d.ts.map