import type { ReactTestInstance } from 'react-test-renderer'; import type { FlingGestureHandler } from '../handlers/FlingGestureHandler'; import type { ForceTouchGestureHandler } from '../handlers/ForceTouchGestureHandler'; import type { BaseGestureHandlerProps, GestureEvent, HandlerStateChangeEvent } from '../handlers/gestureHandlerCommon'; import type { ForceTouchGestureHandlerEventPayload, LongPressGestureHandlerEventPayload, NativeViewGestureHandlerPayload, PanGestureHandlerEventPayload, PinchGestureHandlerEventPayload, RotationGestureHandlerEventPayload, TapGestureHandlerEventPayload } from '../handlers/GestureHandlerEventPayload'; import type { FlingGesture } from '../handlers/gestures/flingGesture'; import type { ForceTouchGesture } from '../handlers/gestures/forceTouchGesture'; import type { GestureType } from '../handlers/gestures/gesture'; import { BaseGesture } from '../handlers/gestures/gesture'; import type { LongPressGesture } from '../handlers/gestures/longPressGesture'; import type { NativeGesture } from '../handlers/gestures/nativeGesture'; import type { PanGesture } from '../handlers/gestures/panGesture'; import type { PinchGesture } from '../handlers/gestures/pinchGesture'; import type { RotationGesture } from '../handlers/gestures/rotationGesture'; import type { TapGesture } from '../handlers/gestures/tapGesture'; import type { LongPressGestureHandler } from '../handlers/LongPressGestureHandler'; import type { NativeViewGestureHandler } from '../handlers/NativeViewGestureHandler'; import type { PanGestureHandler } from '../handlers/PanGestureHandler'; import type { PinchGestureHandler } from '../handlers/PinchGestureHandler'; import type { RotationGestureHandler } from '../handlers/RotationGestureHandler'; import type { TapGestureHandler } from '../handlers/TapGestureHandler'; import type { DetectorCallbacks, SingleGesture } from '../v3/types'; type GestureHandlerTestEvent = Record> = (GestureEvent | HandlerStateChangeEvent)['nativeEvent']; type AllGestures = TapGesture | PanGesture | LongPressGesture | RotationGesture | PinchGesture | FlingGesture | ForceTouchGesture | NativeGesture; type AllHandlers = TapGestureHandler | PanGestureHandler | LongPressGestureHandler | RotationGestureHandler | PinchGestureHandler | FlingGestureHandler | ForceTouchGestureHandler | NativeViewGestureHandler; type ClassComponentConstructor

= new (props: P) => React.Component; type ExtractPayloadFromProps = T extends BaseGestureHandlerProps ? TPayload : never; type ExtractConfig = T extends BaseGesture ? TGesturePayload : T extends ClassComponentConstructor ? ExtractPayloadFromProps : Record; type ExtractHookGesturePayload = T extends { detectorCallbacks: DetectorCallbacks; } ? TExtendedHandlerData : never; type ExtractGestureControllerPayload = T extends SingleGesture ? ExtractHookGesturePayload : T extends BaseGesture ? ExtractConfig : Record; export type GestureControllerEvent = Record> = Partial & { handlerTag?: never; nativeEvent?: never; oldState?: never; state?: never; }; export interface GestureController = Record> { begin: (event?: GestureControllerEvent) => void; activate: (event?: GestureControllerEvent) => void; update: (event?: GestureControllerEvent) => void; end: (event?: GestureControllerEvent) => void; fail: (event?: GestureControllerEvent) => void; cancel: (event?: GestureControllerEvent) => void; } export declare function createGestureController>(componentOrGesture: TTarget): GestureController>; export declare function createGestureController = Record>(componentOrGesture: ReactTestInstance | string): GestureController; export declare function fireGestureHandler(componentOrGesture: ReactTestInstance | GestureType | SingleGesture, eventList?: Partial>>[]): void; export declare function getByGestureTestId(testID: string): BaseGesture> | BaseGesture> | BaseGesture | BaseGesture | BaseGesture | BaseGesture | BaseGesture | BaseGesture | BaseGesture | BaseGesture | SingleGesture; export {}; //# sourceMappingURL=jestUtils.d.ts.map