import { type JSX } from "react"; export type ImageProps = Omit & { /** The ID of the ImageDefinition to display */ imageId: string; /** * The desired width of the image. Can be a number in pixels or "original" to use the image's original width. * When set to a number, the component will select the best available resolution and maintain aspect ratio. * * @example * ```tsx * // Use original width * * * // Set width to 600px, height will be calculated to maintain aspect ratio * * * // Set both width and height to maintain aspect ratio * * ``` */ width?: number | "original"; /** * The desired height of the image. Can be a number in pixels or "original" to use the image's original height. * When set to a number, the component will select the best available resolution and maintain aspect ratio. * * @example * ```tsx * // Use original height * * * // Set height to 400px, width will be calculated to maintain aspect ratio * * * // Set both width and height to maintain aspect ratio * * ``` */ 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 component for displaying images stored as ImageDefinition CoValues. * * @example * ```tsx * import { Image } from "jazz-tools/react"; * * // Force specific dimensions (may crop or stretch) * function Avatar({ imageId }: { imageId: string }) { * return ( * Avatar * ); * } * ``` */ export declare const Image: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; //# sourceMappingURL=image.d.ts.map