import * as React from 'react'; import { Environment } from '../../downshift.types'; /** * Tracks mouse and touch events, such as mouseDown, touchMove and touchEnd. * * @param environment The environment to add the event listeners to, for instance window. * @param handleBlur The function that is called if mouseDown or touchEnd occured outside the downshiftElements. * @param downshiftRefs The refs for the elements that should not trigger a blur action from mouseDown or touchEnd. * @returns A ref holding the mouse and touch events information. Read `.current` only inside event handlers/effects. */ export declare function useMouseAndTouchTracker(environment: Environment | undefined, handleBlur: () => void, downshiftRefs: React.RefObject[]): React.MutableRefObject<{ isMouseDown: boolean; isTouchMove: boolean; isTouchEnd: boolean; }>;