UNPKG

@developer.notchatbot/webchat

Version:

A beautiful React chatbot widget with single-file bundle

29 lines (28 loc) 774 B
/** * Secure cookie management utilities for WebChat */ interface CookieOptions { expires?: Date; maxAge?: number; domain?: string; path?: string; secure?: boolean; sameSite?: 'strict' | 'lax' | 'none'; } /** * Set a secure cookie with proper security flags */ export declare function setCookie(name: string, value: string, options?: CookieOptions): void; /** * Get a cookie value by name */ export declare function getCookie(name: string): string | null; /** * Delete a cookie by setting it to expire in the past */ export declare function deleteCookie(name: string, options?: Pick<CookieOptions, 'domain' | 'path'>): void; /** * Check if cookies are supported/enabled */ export declare function areCookiesSupported(): boolean; export {};