import { Dispatch, SetStateAction } from 'react'; import { Option } from './types'; /** * Context properties for the ListView component */ export type ListViewContextProps = { /** Array of option objects for focus management */ options?: Option[]; /** Callback when selection changes */ onSelectionChange?: (value: unknown[]) => void; /** Currently selected items */ selectedItems: unknown[]; /** Currently indeterminate items */ indeterminateItems: unknown[]; /** Array of items if using items prop */ items?: unknown[]; /** Function to set the selected items */ setSelectedItems: Dispatch>; /** Whether the component is controlled */ controlled?: boolean; }; export declare const ListViewContext: import('react').Context; /** * Hook to access the listview context * @returns The listview context * @throws Error if used outside of a ListView component */ export declare function useListView(): ListViewContextProps;