/** * Storage utility functions for session management */ /** * Safely get item from sessionStorage * @param key - The storage key * @param parseJson - Whether to attempt JSON parsing (default: true) */ export declare function getSessionStorageItem(key: string, parseJson?: boolean): T | null; /** * Safely set item in sessionStorage */ export declare function setSessionStorageItem(key: string, value: any): boolean; /** * Safely remove item from sessionStorage */ export declare function removeSessionStorageItem(key: string): boolean; /** * Clear all sessionStorage items */ export declare function clearSessionStorage(): boolean; /** * Safely get item from localStorage * @param key - The storage key * @param parseJson - Whether to attempt JSON parsing (default: true) */ export declare function getLocalStorageItem(key: string, parseJson?: boolean): T | null; /** * Safely set item in localStorage */ export declare function setLocalStorageItem(key: string, value: any): boolean; /** * Safely remove item from localStorage */ export declare function removeLocalStorageItem(key: string): boolean; /** * Clear all localStorage items */ export declare function clearLocalStorage(): boolean; /** * Get cookie by name */ export declare function getCookie(name: string): string | null; /** * Set cookie with options */ export declare function setCookie(name: string, value: string, options?: { path?: string; domain?: string; secure?: boolean; sameSite?: 'strict' | 'lax' | 'none'; maxAge?: number; expires?: Date; }): boolean; /** * Delete cookie */ export declare function deleteCookie(name: string, path?: string, domain?: string): boolean; /** * Clear all session-related storage */ export declare function clearAllStorage(cookieName?: string, cookiePath?: string, cookieDomain?: string): void; /** * Check if storage is available */ export declare function isStorageAvailable(type: 'sessionStorage' | 'localStorage'): boolean; //# sourceMappingURL=storage.util.d.ts.map