export interface StableActions { set: (key: K, value: T[K]) => void; setAll: (newMap: T) => void; remove: (key: K) => void; reset: () => void; } export interface Actions extends StableActions { get: (key: K) => T[K]; } declare const useMap: (initialMap?: T) => [T, Actions]; export default useMap;