import { type MediaType } from '../../../../../constants';
import { type ElementProps } from '../index';
export type MediaElementProps = ElementProps & {
    /**
     * Function to be called on error loading media.
     * @internal
     */
    onError?: () => void;
    onLoad?: () => void;
    /**
     * The type of media to display. Can be image.
     */
    type?: MediaType;
    /**
     * The URL of the associated media to display.
     */
    url?: string;
};
/**
 * A base element that displays a Media.
 * @internal
 * @param props - The props necessary for the Media element.
 */
declare const MediaElement: ({ name, className, testId, type, url, onLoad, onError, }: MediaElementProps) => JSX.Element | null;
export default MediaElement;
