import { Dispatch, SetStateAction } from 'react'; declare global { interface WindowEventMap { 'local-storage': CustomEvent; } } type UseLocalStorageOptions = { serializer?: (value: T) => string; deserializer?: (value: string) => T; initializeWithValue?: boolean; }; export declare function useLocalStorage(key: string, initialValue: T | (() => T), options?: UseLocalStorageOptions): [T, Dispatch>, () => void]; export {};