import type { Notification } from 'stream-chat'; import type { NotificationTargetPanel } from '../notificationTarget'; export type UseNotificationsFilter = (notification: Notification) => boolean; export type UseNotificationsOptions = { /** Applies the Chat-level display filter after panel routing and before `filter`. */ applyDisplayFilter?: boolean; /** Keeps only the notifications that pass it, e.g. by `origin.emitter` or `metadata`. */ filter?: UseNotificationsFilter; /** Keeps only notifications targeted at this panel. */ panel?: NotificationTargetPanel; /** Panel assumed for notifications that name none. Defaults to `channel`. */ fallbackPanel?: NotificationTargetPanel; }; /** * Subscribes to `client.notifications.store` and returns the notifications that pass the options. * * @param options - Panel routing and filters. Returns every notification when omitted. */ export declare const useNotifications: (options?: UseNotificationsOptions) => Notification[]; //# sourceMappingURL=useNotifications.d.ts.map