import React from 'react'; import { LayoutChangeEvent } from 'react-native'; type ScrollEnablerProps = { onContentSizeChange: (contentWidth: number, contentHeight: number) => void; onLayout: (event: LayoutChangeEvent) => void; scrollEnabled: boolean; }; export type WithScrollEnablerProps = { scrollEnablerProps: ScrollEnablerProps; ref?: any; }; declare function withScrollEnabler(WrappedComponent: React.ComponentType): React.ComponentType & STATICS; export default withScrollEnabler;