/** * Provides an inaccurate mechanism for detecting if a user held on an image long enough for it to bring up * the download sheet. We use a few factors to make an educated guess that this event has occured: * * 1. The user has held on the image for a long enough period of time. * 2. The 'touchcancel' or 'touchend' event was fired after they had passed that threshold * 3. The user has not moved on the image as they were holding with reasonable threshold */ export declare const setImagePossiblyRevealedDownloadSheetListeners: (element: HTMLImageElement, revealedCallback: () => void) => void; export declare const removeImagePossiblyRevealedDownloadSheetListeners: (element: HTMLImageElement) => void; export declare const addPrevent3dTouchListener: (element: HTMLElement, convertToClick?: boolean) => void; /** * This is to be the inverse of what we add with Pressure.js. * Unfortunately, Pressure.js doesn't yet provide this feature so we * need to manually undo it. */ export declare const removePrevent3dTouchListener: (element: HTMLElement) => void; export declare const setTapRecognizers: (element: HTMLElement, onSingleTap?: (e: Event) => void, onDoubleTap?: (e: Event) => void) => void;