UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

17 lines (16 loc) 541 B
interface CookieOptions { days?: number; path?: string; } interface UpdateItem { (value: string, options?: CookieOptions): void; } export declare const setCookie: (name: string, value: string, options?: CookieOptions) => void; export declare const getCookie: (name: string, initialValue?: string) => string; export declare const deleteCookie: (name: string) => void; export declare const useCookie: (key: string, initialValue?: string) => { item: string; updateItem: UpdateItem; deleteItem: () => void; }; export {};