import { type Dispatch, type SetStateAction } from 'react';
/**
 * A helper method to convert any `Storage` object into a React hook, such as `useLocalStorage`.
 */
export declare const useStorageHook: <T>(storage: Storage, key: string, initialValue: T) => [T, Dispatch<SetStateAction<T>>];
/**
 * A React hook to use and set state that is persisted in localStorage.
 *
 * @param key The localStorage key to use for persistence.
 * @param initialValue The initial value to use when there is no value in localStorage for the key.
 * @returns A getter and setter for the value (`const [foo, setFoo] = useLocalStorage('key', 123)`).
 */
export declare const useLocalStorage: <T>(key: string, initialValue: T) => [T, Dispatch<SetStateAction<T>>];
//# sourceMappingURL=use-local-storage.d.ts.map