@connectycube/chat-widget
Version:
A customizable React chat widget built on the ConnectyCube platform, enabling real-time messaging, calls, and user engagement in any web app.
12 lines • 880 B
TypeScript
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>;
//# sourceMappingURL=notifications.d.ts.map