import { Context } from 'react'; export declare type V = number | string; export declare type ValueMap = Map; export interface SelectableContext { valueMap?: ValueMap; toggleSelect: (v: V) => void; addItem: () => void; removeItem: () => void; } export declare type SelectedStatus = 'NONE' | 'ALL' | 'PART'; declare const useGroup: (value: V[], onChange: (v: V[], selectedStatus: SelectedStatus) => void) => { valueMap: ValueMap; toggleSelect: (v: V) => void; addItem: () => void; removeItem: () => void; }; declare const useItem: (value: V, checked: boolean, context: Context) => { checked: boolean; toggle: (v: V) => void; restContext: Omit; }; export { useGroup, useItem };