import { BaseGestureConfig, ContinousBaseGesture } from './gesture'; import { ForceTouchGestureConfig } from '../ForceTouchGestureHandler'; import type { ForceTouchGestureHandlerEventPayload } from '../GestureHandlerEventPayload'; import { GestureUpdateEvent } from '../gestureHandlerCommon'; export type ForceTouchGestureChangeEventPayload = { forceChange: number; }; export declare class ForceTouchGesture extends ContinousBaseGesture { config: BaseGestureConfig & ForceTouchGestureConfig; constructor(); /** * A minimal pressure that is required before gesture can activate. * Should be a value from range [0.0, 1.0]. Default is 0.2. * @param force */ minForce(force: number): this; /** * A maximal pressure that could be applied for gesture. * If the pressure is greater, gesture fails. Should be a value from range [0.0, 1.0]. * @param force */ maxForce(force: number): this; /** * Value defining if haptic feedback has to be performed on activation. * @param value */ feedbackOnActivation(value: boolean): this; onChange(callback: (event: GestureUpdateEvent>) => void): this; } export type ForceTouchGestureType = InstanceType;