import { type FocusEvent, type KeyboardEvent, type RefObject, type SyntheticEvent } from "react"; export interface UseListProps { /** * If true, all items in list will be disabled. */ disabled?: boolean; highlightedItem?: string; selected?: string; defaultSelected?: string; onChange?: (e: SyntheticEvent, data: { value: string | undefined; }) => void; onSelect?: (e: SyntheticEvent, data: { value: string; }) => void; id?: string; ref: RefObject; } export declare const useList: ({ disabled, highlightedItem: highlightedItemProp, selected: selectedProp, defaultSelected, onChange, onSelect, id, ref, }: UseListProps) => { focusHandler: (event: FocusEvent) => void; keyDownHandler: (event: KeyboardEvent) => void; blurHandler: () => void; mouseOverHandler: () => void; activeDescendant: string | undefined; selectedItem: string | undefined; highlightedItem: string | undefined; setSelectedItem: import("react").Dispatch>; setHighlightedItem: import("react").Dispatch>; contextValue: { disabled: boolean; id: string | undefined; select: (event: SyntheticEvent) => void; isSelected: (value: string) => boolean; isFocused: (value: string) => boolean; highlight: (event: SyntheticEvent) => void; isHighlighted: (value: string) => boolean; }; focusVisibleRef: import("react").Ref; };