@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
15 lines (14 loc) • 705 B
TypeScript
type UserSettingsStateProps = {
isNotifications: boolean;
isNotificationSound: boolean;
isPushNotifications: boolean;
};
interface UserSettingsState extends UserSettingsStateProps {
setIsNotifications: (enabled: boolean) => Promise<void>;
setIsNotificationSound: (enabled: boolean) => Promise<void>;
setIsPushNotifications: (enabled: boolean) => Promise<void>;
}
declare const useUserSettingsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<UserSettingsState>>;
export declare const managePushNotificationsSubscription: (enable: boolean) => Promise<boolean>;
export declare const restoreUserSettingsStore: () => Promise<void>;
export default useUserSettingsStore;