UNPKG

@developer.notchatbot/webchat

Version:

A beautiful React chatbot widget with single-file bundle

33 lines (32 loc) 1.02 kB
export interface NotChatbotCookieData { conversationId: string; conversationStarted: boolean; } /** * Get the notchatbot cookie data, creating it if it doesn't exist */ export declare function getNotChatbotCookie(): NotChatbotCookieData; /** * Set the notchatbot cookie with specified data */ export declare function setNotChatbotCookie(data: NotChatbotCookieData): void; /** * Update the conversationStarted flag in the cookie */ export declare function setConversationStarted(started: boolean): NotChatbotCookieData; /** * Get current conversation ID from the cookie */ export declare function getConversationId(): string; /** * Check if conversation has been started */ export declare function isConversationStarted(): boolean; /** * Reset the conversation by creating a new conversation ID and setting conversationStarted to false */ export declare function resetConversation(): NotChatbotCookieData; /** * Delete the notchatbot cookie */ export declare function deleteNotChatbotCookie(): void;