import { ComponentPropsWithoutRef } from 'react'; import { LayoutUtilProps } from '../../../types'; /** * Represents an item in the picker list with a label and optional disabled state. */ export type PickerListItem = { /** The display label for the item */ label: string; /** The value of the item */ value: number; /** Whether the item is disabled and cannot be selected */ disabled?: boolean; }; /** * Props for the PickerList component * @extends ComponentPropsWithoutRef<"ul"> * @extends LayoutUtilProps */ export type PickerListProps = Omit, "children"> & LayoutUtilProps & { /** Array of items to render */ items: PickerListItem[]; /** Currently selected item (controlled) */ selected?: PickerListItem; /** Callback when selection changes */ onSelectionChange?: (selected: PickerListItem | undefined) => void; }; /** * Ref methods exposed by PickerList */ export type PickerListRef = { /** Scroll to a specific item by label */ scrollToItem: (label: string, behavior?: ScrollBehavior) => void; /** Scroll to a specific item by value */ scrollToValue: (value: number, behavior?: ScrollBehavior) => void; }; /** * PickerList component for selecting items from a list. * * Features: * - Single selection mode only * - Mouse click selection * - Programmatic scrolling to specific items * - Support for disabled items * - Accessible with proper ARIA attributes * - Visual consistency with Listbox component * * @example * */ export declare const PickerList: import('react').ForwardRefExoticComponent, HTMLUListElement>, "ref">, "children"> & LayoutUtilProps & { /** Array of items to render */ items: PickerListItem[]; /** Currently selected item (controlled) */ selected?: PickerListItem; /** Callback when selection changes */ onSelectionChange?: (selected: PickerListItem | undefined) => void; } & import('react').RefAttributes>;