import type { Ref, RefObject } from 'react'; import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native'; import { FlatList, ScrollView } from 'react-native'; import type { DraxViewMeasurements, Position } from '../types'; type ScrollableComponents = FlatList | ScrollView; type DraxScrollHandlerArgs = { idProp?: string; onContentSizeChangeProp?: (w: number, h: number) => void; onScrollProp?: (event: NativeSyntheticEvent) => void; externalRef?: Ref; doScroll: RefObject<() => void>; }; export declare const useDraxScrollHandler: ({ idProp, onContentSizeChangeProp, onScrollProp, externalRef, doScroll, }: DraxScrollHandlerArgs) => { id: string; containerMeasurementsRef: RefObject; contentSizeRef: RefObject; onContentSizeChange: (width: number, height: number) => void | undefined; onMeasureContainer: (measurements: DraxViewMeasurements | undefined) => void; onScroll: (event: NativeSyntheticEvent) => void; scrollRef: RefObject; scrollPosition: import("react-native-reanimated").SharedValue; setScrollRefs: (instance: T | null) => void; startScroll: () => void; stopScroll: () => void; }; export {}; //# sourceMappingURL=useDraxScrollHandler.d.ts.map