import type { Dispatch, SetStateAction } from 'react'; declare global { interface WindowEventMap { 'session-storage': CustomEvent; } } type SetValue = Dispatch>; export declare function useSessionStorage(key: string, initialValue: T): [T, SetValue]; export {};