import {AccessibilityProps, ImageProps, ImageSourcePropType} from 'react-native' export interface ImageWrapperProps extends AccessibilityProps, Pick< ImageProps, | 'source' | 'style' | 'resizeMode' | 'onError' | 'onLoad' | 'blurRadius' | 'testID' | 'onLoadEnd' | 'onLoadStart' | 'fadeDuration' | 'width' | 'height' | 'resizeMethod' | 'defaultSource' | 'onLayout' | 'tintColor' > { alt?: string nativeID?: string } export type RavenImageProps = { children?: React.ReactNode config?: ImageOptimisationConfig } & ImageWrapperProps export type ImageOptimisationConfig = { width: number height: number fit?: ResizeMode } type ResizeMode = 'cover' | 'contain' | 'fit' | 'inside' | 'out' export type Pattern = { baseUrls: Array bucketName: string directories: Record } export type ServerlessConfig = { intelligentImageDomain: string patterns: Record excludedImageFormats: Array } export type ImageSource = ImageSourcePropType