UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

4 lines (3 loc) 302 B
import { UseStorageOptions } from './create-storage'; export declare function useLocalStorage<T = string>(props: UseStorageOptions<T>): import("./create-storage").UseStorageReturnValue<T>; export declare const readLocalStorageValue: <T>({ key, defaultValue, deserialize, }: UseStorageOptions<T>) => T;