import type { DependencyList, NativeEventWrapper, ReanimatedEvent } from './commonTypes'; declare const EVENT_TYPE: { readonly UNDETERMINED: 0; readonly FAILED: 1; readonly BEGAN: 2; readonly CANCELLED: 3; readonly ACTIVE: 4; readonly END: 5; }; type StateType = (typeof EVENT_TYPE)[keyof typeof EVENT_TYPE]; type DefaultEvent = { nativeEvent: { readonly handlerTag: number; readonly numberOfPointers: number; readonly state: (typeof EVENT_TYPE)[keyof typeof EVENT_TYPE]; readonly x: number; readonly y: number; readonly absoluteX: number; readonly absoluteY: number; readonly translationX: number; readonly translationY: number; readonly velocityX: number; readonly velocityY: number; }; }; interface PropsUsedInUseAnimatedGestureHandler { handlerTag?: number; numberOfPointers?: number; state?: StateType; oldState?: StateType; } export type GestureHandlerEvent = ReanimatedEvent | Event; type GestureHandler, Context extends Record> = (eventPayload: ReanimatedEvent, context: Context, isCanceledOrFailed?: boolean) => void; export interface GestureHandlers, Context extends Record> { [key: string]: GestureHandler | undefined; onStart?: GestureHandler; onActive?: GestureHandler; onEnd?: GestureHandler; onFail?: GestureHandler; onCancel?: GestureHandler; onFinish?: GestureHandler; } /** * @deprecated UseAnimatedGestureHandler is an old API which is no longer * supported. * * Please check * https://docs.swmansion.com/react-native-gesture-handler/docs/guides/upgrading-to-2/ * for information about how to migrate to `react-native-gesture-handler` v2 */ export declare function useAnimatedGestureHandler = DefaultEvent, Context extends Record = Record>(handlers: GestureHandlers, dependencies?: DependencyList): (e: Event) => void; export {}; //# sourceMappingURL=useAnimatedGestureHandler.d.ts.map