import { Dispatch, SetStateAction } from 'react'; declare global { interface WindowEventMap { "local-storage": CustomEvent; } } type SetValue = Dispatch>; /** * @name useLocalStorage * @description A hook to use localStorage with ease and encriptation * @param key {string} - The key to store the value in localStorage * @param initialValue {T} - The initial value to store in localStorage * @param encriptationKey {string} - The key to encript the value in localStorage * @returns {[T, SetValue]} The stored value and a function to set the value * * @example * ```tsx * const [value, setValue] = useLocalStorage('key', 'initialValue') * ``` * */ export declare function useLocalStorage(key: string, initialValue: T, encriptationKey?: string): [T, SetValue]; export {}; //# sourceMappingURL=use-local-storage.d.ts.map