import React from "react"; import { Direction } from "../../../hooks/useSwipe"; import type { SwipeState } from "../../../hooks/useSwipe"; import type { Boundary } from "../type"; interface ScrollListSwipeState { delta: number; boundary: Boundary | null; swipeState: SwipeState; } export interface ScrollListSwipeOption { scrollElementRef: React.RefObject; onStart: (state: ScrollListSwipeState) => void; onMove: (state: ScrollListSwipeState) => void; onEnd: (state: ScrollListSwipeState) => void; onCancel: (state: ScrollListSwipeState) => void; } /** * Use useSwipe with Scrollable content * 1. prevent scrolling on swiping * 1. start counting delta when scroll to top and bottom */ export declare const useScrollListSwipe: ({ scrollElementRef, onStart, onMove, onEnd, onCancel }: ScrollListSwipeOption) => import("../../../hooks/useSwipe").SwipeHookResult; export declare function isExceededBounary(delta: number, boundary: Boundary): boolean; export declare function getBounaryFromStartDirection(direction: Direction): Boundary | null; export declare function isScrollTop(element: HTMLElement): boolean; export declare function isScrollBottom(element: HTMLElement): boolean; export declare function isScrollLeft(element: HTMLElement): boolean; export declare function isScrollRight(element: HTMLElement): boolean; export {};