import type { DOMRef, Key } from '@react-types/shared'; import { type NormalizedItem, type NormalizedSection } from '../utils'; import { type PickerNormalizedPropsT } from './PickerProps'; /** Props that are derived by `usePickerNormalizedProps` */ export type UsePickerNormalizedDerivedProps = { children: (itemOrSection: NormalizedItem | NormalizedSection) => JSX.Element; forceRerenderKey: Key; items: (NormalizedItem | NormalizedSection)[]; defaultSelectedKey?: Key; disabledKeys?: Iterable; ref: DOMRef; selectedKey?: Key | null; onSelectionChange: (key: Key | null) => void; onOpenChange: (isOpen: boolean) => void; }; /** * Props that are passed through untouched. (should exclude all of the * destructured props passed into `usePickerNormalizedProps` that are not in the * spread ...props) */ export type UsePickerNormalizedPassthroughProps = Omit, 'defaultSelectedKey' | 'disabledKeys' | 'getInitialScrollPosition' | 'normalizedItems' | 'onChange' | 'onOpenChange' | 'onScroll' | 'onSelectionChange' | 'selectedKey' | 'showItemIcons' | 'tooltip'>; /** Props returned from `usePickerNormalizedProps` hook. */ export type UsePickerNormalizedProps = UsePickerNormalizedDerivedProps & UsePickerNormalizedPassthroughProps; export declare function usePickerNormalizedProps({ defaultSelectedKey, disabledKeys, getInitialScrollPosition, normalizedItems, onChange, onOpenChange, onScroll, onSelectionChange, selectedKey, showItemIcons, tooltip, ...props }: PickerNormalizedPropsT): UsePickerNormalizedProps; export default usePickerNormalizedProps; //# sourceMappingURL=usePickerNormalizedProps.d.ts.map