import type { OptionalIndexValue } from "../types/index-value"; type Selection = [number, T]; type UseSelectableListReturnType = [ Selection, { matchSelection: (parameters: OptionalIndexValue) => boolean; toggleSelection: (parameters: OptionalIndexValue) => () => void; updateSelection: (parameters: OptionalIndexValue) => () => void; } ]; /** * useSelectableList * Easily select a single value from a list of values. very useful for radio buttons, select inputs etc. * * @param list - The list of values to select from * @param initialIndex - The index of the initial selection * @param allowUnselected * @see https://rooks.vercel.app/docs/hooks/useSelectableList */ declare function useSelectableList(list?: T[], initialIndex?: number, allowUnselected?: boolean): UseSelectableListReturnType; export { useSelectableList };