import { type ImageProps as RNImageProps } from 'react-native'; /** * Subset of expo-image's ImageContentFit that we map to react-native-web's resizeMode. * expo-image's 'scale-down' and 'none' have no exact RNW equivalents — closest approximations used. */ type ContentFit = 'cover' | 'contain' | 'fill' | 'none' | 'scale-down'; /** * expo-image accepts `source` as a string URL, a URI object, a number (require), * or an array. react-native-web's Image only accepts `{ uri }` objects or numbers, * so we normalize string sources to `{ uri: string }`. */ type SourceInput = string | number | { uri: string; width?: number; height?: number; } | ReadonlyArray<{ uri: string; width?: number; height?: number; }> | null | undefined; export type ImageProps = Omit & { source?: SourceInput; contentFit?: ContentFit; className?: string; /** Accepted for API parity with expo-image; ignored on web. */ cachePolicy?: string; /** Accepted for API parity with expo-image; ignored on web. */ transition?: number | object; /** Accepted for API parity with expo-image; ignored on web. */ placeholder?: unknown; /** Accepted for API parity with expo-image; ignored on web. */ placeholderContentFit?: ContentFit; /** Accepted for API parity with expo-image; ignored on web. */ recyclingKey?: string; /** Accepted for API parity with expo-image; ignored on web. */ priority?: string; }; declare function Image({ source, contentFit, className, cachePolicy: _cachePolicy, transition: _transition, placeholder: _placeholder, placeholderContentFit: _placeholderContentFit, recyclingKey: _recyclingKey, priority: _priority, style, ...props }: ImageProps): import("react/jsx-runtime").JSX.Element; export { Image }; //# sourceMappingURL=image.web.d.ts.map