/** * 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 CSSProperties, type ReactNode, type RefObject } from 'react'; import { type InfiniteLoadingReturn } from '../../hooks'; type RefreshControlProps = Record> = { containerStyle?: CSSProperties; context: InfiniteLoadingReturn; detectionMargin?: string; /** * By default is false */ preload?: boolean; renderComponent?: (props: { canLoadMore: boolean; onClick: () => void; }) => ReactNode; /** * Determines the nearest scrolling parent (overflow container) by default. * If no `root` is provided, it searches for the closest overflow parent, otherwise, it defaults to the `window`. */ root?: IntersectionObserverInit['root'] | RefObject; }; /** * Component to help useInfiniteScroll control the scroll */ declare function RefreshControl = Record>({ containerStyle, context, detectionMargin, preload, renderComponent, root }: RefreshControlProps): import("react/jsx-runtime").JSX.Element; export default RefreshControl;