import React from 'react'; import type { NativeProps as PagerViewProps } from './PagerViewNativeComponent'; import PagerViewView from './PagerViewNativeComponent'; /** * 新的 ViewPager 组件继承 PagerView 的功能 */ export declare class ViewPager extends React.Component { private isScrolling; pagerView: React.ElementRef | null; private _onPageScroll; private _onPageScrollStateChanged; private _previousPagePosition; private _onPageSelected; /** * A helper function to scroll to a specific page in the PagerView. * The transition between pages will be animated. */ setPage: (selectedPage: number) => void; /** * A helper function to scroll to a specific page in the PagerView. * The transition between pages will *not* be animated. */ setPageWithoutAnimation: (selectedPage: number) => void; /** * A helper function to enable/disable scroll imperatively * The recommended way is using the scrollEnabled prop, however, there might be a case where a * imperative solution is more useful (e.g. for not blocking an animation) */ setScrollEnabled: (scrollEnabled: boolean) => void; private _onMoveShouldSetResponderCapture; private get deducedLayoutDirection(); render(): JSX.Element; }