export { SquircleButton, SquircleView, SquircleViewProps } from 'expo-squircle-view'; import { ImageProps, ImageStyle, ImageContentFit, ImageTransition } from 'expo-image'; export { ImageContentFit, ImageTransition } from 'expo-image'; import React from 'react'; import { DimensionValue } from 'react-native'; type SquircleImageProps = Omit & { /** * Style for the image. Must include width, height, and borderRadius. */ style?: ImageStyle & { width?: DimensionValue; height?: DimensionValue; borderRadius?: number; }; /** * Controls the amount of smoothing for the radius. * 0 means no smoothing, 100 means maximum smoothing. * @default 100 */ cornerSmoothing?: number; /** * Enhanced rounding for larger borderRadius values when true. * @default true */ preserveSmoothing?: boolean; /** * Blurhash string for placeholder image while loading. * @see https://blurha.sh/ */ placeholderHash?: string; /** * Content fit mode for the placeholder. * @default 'cover' */ placeholderContentFit?: ImageContentFit; /** * Image transition configuration. * Can be a number (duration in ms) or an ImageTransition object. * @default { duration: 300, effect: 'cross-dissolve', timing: 'ease-in-out' } */ transition?: ImageTransition | number | null; /** * Determines whether and where to cache the image. * - 'none' - Image is not cached at all. * - 'disk' - Image is cached on disk. * - 'memory' - Image is cached in memory only. * - 'memory-disk' - Image is cached in memory with disk fallback. * @default 'memory-disk' */ cachePolicy?: 'none' | 'disk' | 'memory' | 'memory-disk'; }; /** * An image component with squircle (iOS-style smooth corner) clipping. * Uses MaskedView with SquircleView to properly clip images with smooth corners. * Supports blurhash placeholders, smooth transitions, and configurable caching. * * @example * ```tsx * * ``` */ declare function SquircleImage({ style, cornerSmoothing, preserveSmoothing, placeholderHash, placeholderContentFit, transition, cachePolicy, ...imageProps }: SquircleImageProps): React.JSX.Element; export { SquircleImage, type SquircleImageProps };