import { ChangeEvent, ComponentPropsWithoutRef } from 'react'; import { CheckboxState } from '../Checkbox/types'; import { DataTrackingId } from '../../types'; type ItemType = { label: string; disabled?: boolean; [key: string]: unknown; }; /** * Props for the ListViewOption component * @extends ComponentPropsWithoutRef<"div"> */ export type ListViewOptionProps = Omit, "onChange"> & { /** Whether the option is disabled */ disabled?: boolean; /** Callback when the option changes */ onChange?: (e: ChangeEvent, state?: CheckboxState) => void; } & ({ /** The item object when using items prop */ item: ItemType; } | { /** The display label for the option */ label: string; }) & DataTrackingId; /** * ListViewOption component for individual selectable items within a listview. * * Features: * - Displays selectable options with proper ARIA attributes * - Supports disabled state for non-selectable options * - Keyboard navigation support * - Accessible with screen reader support * * @example * */ export declare const ListViewOption: import('react').ForwardRefExoticComponent>; export {};