import type { SharedValue } from 'react-native-reanimated'; /** * Configuration for autoscroll behavior. */ export interface AutoscrollConfig { /** Pixels from viewport edge to trigger autoscroll */ edgeThreshold: number; /** Maximum scroll speed in pixels per frame at edge */ maxScrollSpeed: number; } /** * Input values for autoscroll calculation. */ export interface AutoscrollInput { /** Current scroll offset SharedValue */ scrollOffset: SharedValue; /** Total content height SharedValue */ contentHeight: SharedValue; /** Visible viewport height SharedValue */ visibleHeight: SharedValue; /** Y position of list top on screen SharedValue */ listTopY: SharedValue; /** Last scroll time SharedValue (for throttling) */ lastScrollTime: SharedValue; } /** * Check if autoscroll should trigger and perform scroll if needed. * * This function handles scrolling when the finger is near the top or bottom * edges of the list viewport. It throttles scroll calls to ~30fps to reduce * JS thread pressure. * * @worklet - This function runs on the UI thread * * @param absoluteY - Current finger absoluteY position * @param input - Autoscroll input SharedValues * @param config - Autoscroll configuration * @param scrollToOffset - Callback to scroll the list (will be scheduled on RN thread) */ export declare function checkAutoscroll(absoluteY: number, input: AutoscrollInput, config: AutoscrollConfig, scrollToOffset: (offset: number) => void): void; //# sourceMappingURL=useAutoscroll.d.ts.map