import { type ItemKey } from './itemUtils'; export interface UseOnChangeTrackUncontrolledOptions { defaultSelectedKey?: ItemKey; selectedKey?: ItemKey | null; onChange?: (key: ItemKey | null) => void; } export interface UseOnChangeTrackUncontrolledResult { selectedKeyMaybeUncontrolled?: ItemKey | null; onChangeMaybeUncontrolled: (key: ItemKey | null) => void; } /** * Returns a selectedKey and onChange handler that can manage selection state * for both controlled and uncontrolled components. Useful for cases where a * component needs to always track its selection state regardless of its * controlled / uncontrolled status. */ export declare function useOnChangeTrackUncontrolled({ defaultSelectedKey, selectedKey, onChange: onChangeHandler, }: UseOnChangeTrackUncontrolledOptions): UseOnChangeTrackUncontrolledResult; export default useOnChangeTrackUncontrolled; //# sourceMappingURL=useOnChangeTrackUncontrolled.d.ts.map