import React from 'react';
import { AsChildChildren } from '@wix/headless-utils/react';
type MediaItem = {
image?: string;
};
/**
* WixMediaImage is a headless React component for rendering images using Wix Media Platform URLs.
* It supports both standard images and shape images (where "shape" refers to images sourced from Wix Shapes, not the media gallery), and can be rendered as a native
or as a custom child via asChild.
* The component automatically derives src, width, height, and alt from the provided media object.
* @field isShape means that the media stores in shapes instead of regular media.
*/
export interface WixMediaImageProps extends Omit, 'children'> {
media?: MediaItem;
isShape?: boolean;
asChild?: boolean;
children?: AsChildChildren<{
src: string;
width?: number;
height?: number;
alt: string;
}>;
}
export declare const WixMediaImage: React.ForwardRefExoticComponent>;
export {};