UNPKG

@connectycube/chat-widget

Version:

A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—withou

12 lines (11 loc) 837 B
export type PushSubscriptionData = { endpoint: string; auth: string; p256dh: string; } | undefined; export declare const requestNotificationPermission: () => Promise<boolean>; export declare const registerWidgetServiceWorker: (serviceWorkerPath?: string | URL) => Promise<boolean>; export declare const getWidgetServiceWorker: (serviceWorkerPath?: string | URL) => Promise<ServiceWorkerRegistration | void>; export declare const getPushManagerSubscriptionData: (subscription?: PushSubscription | null) => PushSubscriptionData; export declare const getPushManagerSubscription: (serviceWorkerPath?: string | URL, applicationServerKey?: PushSubscriptionOptionsInit["applicationServerKey"]) => Promise<PushSubscription | null>; export declare const unsubscribePushManager: (serviceWorkerPath?: string | URL) => Promise<boolean>;