import * as React from 'react';
/**
 * Hook to wrap around useState that stores the value in the browser local/session storage.
 *
 * @param {any} initialValue the initial value to store
 * @param {string} key the key to store the value in local/session storage
 * @param {string} storage either 'local' or 'session' for what type of storage
 * @returns a stateful value, and a function to update it.
 */
export type StorageType = 'local' | 'session';
export declare const useStorage: <S>(initialValue: S, key: string, storage?: StorageType) => [S, React.Dispatch<React.SetStateAction<S>>];
