import { Dispatch, SetStateAction } from 'react'; import { ISelectionContext, OptionType, SelectionContextProps } from './selectionContext'; import { Id, SelectableProps } from '../../types'; export declare function useSelection, V extends Id = Id>({ ...props }: SelectionContextProps): ISelectionContext; export type UseFlatSelectionParams = Omit, 'multiple'> & { multiple?: boolean; disabled?: boolean; clearable?: boolean; }; export declare function useFlatSelection(params: UseFlatSelectionParams): [V, (value: V) => void, Dispatch>];