/** * react-fetch v1.49.0 * * Copyright (c) resourge. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ import { type RefObject } from 'react'; import { type NativeScrollEvent, type NativeSyntheticEvent } from 'react-native'; import { type ScrollPos } from './types'; export type ElementWithScrollTo = { scrollToOffset: (params: { animated?: boolean | null | undefined; offset: number; }) => void; }; export declare const useOnScroll: (scrollMethod: (position: ScrollPos) => void) => [ref: RefObject, onScroll: (event: NativeSyntheticEvent) => void];