import React from 'react';
import { ElementProps, MediaNode } from '../../../el';
/**
 * 只读模式下的图片组件，带有错误处理功能
 * 如果图片加载失败，将显示可点击的链接
 *
 * @component
 * @param props - 图片属性
 * @returns 返回一个图片组件，如果加载失败则返回一个链接
 */
interface ReadonlyImageProps {
    src?: string;
    alt?: string;
    width?: number | string;
    height?: number | string;
    crossOrigin?: 'anonymous' | 'use-credentials' | '';
}
export declare const ReadonlyImage: React.FC<ReadonlyImageProps>;
/**
 * 修复图片大小的问题
 * @param props
 * @returns
 */
export declare const ResizeImage: ({ onResizeStart, onResizeStop, selected, defaultSize, ...props }: React.ImgHTMLAttributes<HTMLImageElement> & {
    onResizeStart?: (() => void) | undefined;
    onResizeStop?: ((size: {
        width: number | string;
        height: number | string;
    }) => void) | undefined;
    defaultSize?: {
        width?: number | undefined;
        height?: number | undefined;
    } | undefined;
    selected?: boolean | undefined;
}) => React.JSX.Element;
export declare function EditorImage({ element, attributes, children, }: ElementProps<MediaNode>): React.JSX.Element;
export {};
