export default function useSelections(items: T[], defaultSelected?: T[]): { readonly selected: T[]; readonly noneSelected: boolean; readonly allSelected: boolean; readonly partiallySelected: boolean; readonly setSelected: import("react").Dispatch>; readonly isSelected: (item: T) => boolean; readonly select: (item: T) => void; readonly unSelect: (item: T) => void; readonly toggle: (item: T) => void; readonly selectAll: () => void; readonly unSelectAll: () => void; readonly toggleAll: () => void; };