import { Dispatch, SetStateAction } from 'react'; type StorageKind = 'local' | 'session'; type UseStorageOptions = { serializer?: (value: T) => string; deserializer?: (value: string) => T; }; type StorageSetter = Dispatch>; declare function useStorage(kind: StorageKind, key: string, initialValue: T, options?: UseStorageOptions): readonly [T, StorageSetter, () => void]; export { useStorage }; export type { StorageKind, StorageSetter, UseStorageOptions };