stream-chat-react
Version:
React components to create chat conversations or livestream style chat
17 lines • 1.26 kB
TypeScript
import type { Notification } from 'stream-chat';
declare const NOTIFICATION_TARGET_PANELS: readonly ["channel", "thread", "channel-list", "thread-list", "modal"];
/**
* Panel where a notification should be consumed.
* Use in origin.context.panel when publishing so NotificationList can filter by panel.
*/
export type NotificationTargetPanel = (typeof NOTIFICATION_TARGET_PANELS)[number];
export declare const isNotificationTargetPanel: (value: unknown) => value is NotificationTargetPanel;
export declare const getNotificationTargetPanel: (notification: Notification) => NotificationTargetPanel | undefined;
export declare const getNotificationTargetPanels: (notification: Notification) => NotificationTargetPanel[];
export declare const getNotificationTargetTag: (panel: NotificationTargetPanel) => "target:channel" | "target:thread" | "target:channel-list" | "target:thread-list" | "target:modal";
export declare const addNotificationTargetTag: (panel: NotificationTargetPanel | undefined, tags?: string[]) => string[];
export declare const isNotificationForPanel: (notification: Notification, panel: NotificationTargetPanel, options?: {
fallbackPanel?: NotificationTargetPanel;
}) => boolean;
export {};
//# sourceMappingURL=notificationTarget.d.ts.map