import { Image as RNImage, ImageProps as RNImageProps } from "react-native"; export type ImageProps = Omit & { /** The ID of the ImageDefinition to display */ imageId: string; /** * Width of the image. Can be a number or "original" to use the original image width. * When set to "original", the component will calculate the appropriate height to maintain aspect ratio. * * @example * ```tsx * // Fixed width, auto-calculated height * * * // Original width * * ``` */ width?: number | "original"; /** * Height of the image. Can be a number or "original" to use the original image height. * When set to "original", the component will calculate the appropriate width to maintain aspect ratio. * * @example * ```tsx * // Fixed height, auto-calculated width * * * // Original height * * ``` */ height?: number | "original"; /** * A custom placeholder to display while an image is loading. This will * be passed as the src of the img tag, so a data URL works well here. * This will be used as a fallback if no images are ready and no placeholder * is available otherwise. */ placeholder?: string; }; /** * A React Native Image component that integrates with Jazz's ImageDefinition system. * * @example * ```tsx * import { Image } from "jazz-tools/react-native"; * import { StyleSheet } from "react-native"; * * function ProfilePicture({ imageId }) { * return ( * * ); * } * * const styles = StyleSheet.create({ * profilePic: { * borderRadius: 50, * } * }); * ``` */ export declare const Image: import("react").ForwardRefExoticComponent & { /** The ID of the ImageDefinition to display */ imageId: string; /** * Width of the image. Can be a number or "original" to use the original image width. * When set to "original", the component will calculate the appropriate height to maintain aspect ratio. * * @example * ```tsx * // Fixed width, auto-calculated height * * * // Original width * * ``` */ width?: number | "original"; /** * Height of the image. Can be a number or "original" to use the original image height. * When set to "original", the component will calculate the appropriate width to maintain aspect ratio. * * @example * ```tsx * // Fixed height, auto-calculated width * * * // Original height * * ``` */ height?: number | "original"; /** * A custom placeholder to display while an image is loading. This will * be passed as the src of the img tag, so a data URL works well here. * This will be used as a fallback if no images are ready and no placeholder * is available otherwise. */ placeholder?: string; } & import("react").RefAttributes>; //# sourceMappingURL=image.d.ts.map