pay-sdk-react
Version:
A cross-platform payment SDK for React, supporting Alipay, WeChat Pay, PayPal, Stripe, Payssion, and Airwallex, compatible with H5, PC, and App environments.
18 lines (17 loc) • 657 B
TypeScript
/// <reference types="react" />
type Direction = '' | 'vertical' | 'horizontal';
export declare function useTouch(): {
move: EventListener;
start: EventListener;
reset: () => void;
startX: import("react").MutableRefObject<number>;
startY: import("react").MutableRefObject<number>;
deltaX: import("react").MutableRefObject<number>;
deltaY: import("react").MutableRefObject<number>;
offsetX: import("react").MutableRefObject<number>;
offsetY: import("react").MutableRefObject<number>;
direction: import("react").MutableRefObject<Direction>;
isVertical: () => boolean;
isHorizontal: () => boolean;
};
export {};