UNPKG

@cliqdigital/bloomreach-sdk

Version:

React component library for integrating Bloomreach SDK with push notifications support

25 lines (24 loc) 988 B
import React, { Component } from "react"; import { BloomreachContext, BloomreachContextType } from "../context/BloomreachContext"; interface NotificationHandlerState { isClient: boolean; hasShownBanner: boolean; isShowingBanner: boolean; } interface NotificationHandlerProps { onConsentGranted: () => void; onConsentDenied: () => void; } export declare class NotificationHandler extends Component<NotificationHandlerProps, NotificationHandlerState> { static contextType: React.Context<BloomreachContextType>; context: React.ContextType<typeof BloomreachContext>; constructor(props: NotificationHandlerProps); componentDidMount(): void; componentDidUpdate(prevProps: NotificationHandlerProps, prevState: NotificationHandlerState): Promise<void>; handleAccept: () => Promise<void>; handleReject: () => void; private urlBase64ToUint8Array; renderConsentBanner(): React.JSX.Element; render(): React.JSX.Element | null; } export {};