import { Rect, Size } from 'react-stately/useVirtualizerState'; import React, { CSSProperties, HTMLAttributes, ReactNode, RefObject } from 'react'; interface ScrollViewProps extends Omit, 'onScroll'> { contentSize: Size; onVisibleRectChange: (rect: Rect) => void; onSizeChange?: (size: Size) => void; children?: ReactNode; innerStyle?: CSSProperties; onScrollStart?: () => void; onScrollEnd?: () => void; scrollDirection?: 'horizontal' | 'vertical' | 'both'; onScroll?: (e: Event) => void; allowsWindowScrolling?: boolean; } declare const ScrollViewForwardRef: React.ForwardRefExoticComponent>; export { ScrollViewForwardRef as ScrollView }; interface ScrollViewAria { isScrolling: boolean; scrollViewProps: HTMLAttributes; contentProps: HTMLAttributes; } export declare function useScrollView(props: ScrollViewProps, ref: RefObject): ScrollViewAria;