import type React from 'react'; import type { ImageProps, StyleProp } from 'react-native'; declare module 'react-native-image-progress' { type ImageProgressComponent

= React.ComponentType< P & { errorContainerStyle?: StyleProp; indicator?: React.ComponentType; indicatorContainerStyle?: StyleProp; indicatorProps?: any; renderIndicator?: ( progress: number, indeterminate: boolean, ) => React.ReactElement; renderError?: (error: Error) => React.ReactElement; style?: StyleProp; imageStyle?: StyleProp; threshold?: number; } >; export function createImageProgress

( ImageComponent: React.ComponentType

, ): ImageProgressComponent

; const ImageProgress: ImageProgressComponent; export default ImageProgress; }