import { Dispatch, SetStateAction } from 'react'; /** * @see https://github.com/streamich/react-use/blob/master/src/useLocalStorage.ts */ export type ParserOptions = { raw: true; } | { raw: false; serializer: (value: T) => string; deserializer: (value: string) => T; }; export declare const useLocalStorage: (key: string, initialValue?: T, options?: ParserOptions) => [T | undefined, Dispatch>, () => void];