import { Dispatch, SetStateAction } from 'react'; /** * Sync state to local storage so that it persists through a page refresh. * Usage is similar to useState except we pass in a local storage key so * that we can default to that value on page load instead of the specified initial value. */ export declare const useLocalStorage: (key: string, initialValue?: T | undefined) => [T, Dispatch>];