import { PropsWithChildren } from 'react'; import { StyledProp, StyledProps, WithStyledProps } from '@mapples/style'; import { ImageProps as ExpoImageProps } from 'expo-image'; import { ImageStyle, ViewProps } from 'react-native'; /** * Props for the Image component. * * @public */ export type ImageProps = PropsWithChildren, 'styled'> & { /** Styling configuration for the image container and image itself */ styled?: StyledProps & { /** Image-specific styling */ styleImage?: StyledProp; /** Additional styled props forwarded directly to the underlying `expo-image` component */ styledImageProps?: StyledProps; }; /** Alternative data source for the image */ dataSource?: string; }>; /** * A customizable image component with built-in styling support. * * The Image component extends Expo's Image component with additional styling * capabilities through the @mapples/style system. It supports both container * and image-specific styling, and can use either the `source` or `dataSource` prop. * `styled.style` sizes the container and the picture fills it; `styleImage` * overrides the picture's own size. A container with a border radius clips * the picture to its corners (set `overflow: 'visible'` to opt out). * * @example * ```tsx * Example image * ``` * * @public */ declare const Image: import("react").ForwardRefExoticComponent, "styled"> & { /** Styling configuration for the image container and image itself */ styled?: StyledProps & { /** Image-specific styling */ styleImage?: StyledProp; /** Additional styled props forwarded directly to the underlying `expo-image` component */ styledImageProps?: StyledProps; }; /** Alternative data source for the image */ dataSource?: string; } & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes>; export default Image; //# sourceMappingURL=Image.d.ts.map