import { Dispatch, SetStateAction } from "react";
export declare type MapStateFactory<K, V> = {
    clear: VoidFunction;
    set: (key: K, value: V) => void;
    delete: (key: K) => void;
};
export declare const mapStateFactory: <K, V>(setState: Dispatch<SetStateAction<Map<K, V>>>) => MapStateFactory<K, V>;
export declare const useMapState: <K, V>(initialEntries?: readonly (readonly [K, V])[] | null | undefined) => MapStateFactory<K, V> & {
    state: Map<K, V>;
    setState: Dispatch<SetStateAction<Map<K, V>>>;
};
