import { ImageProps } from 'antd';
import React from 'react';
import { ElementProps, MediaNode } from '../../../el';
/**
 * 图片组件，带有错误处理功能
 * 如果图片加载失败，将显示可点击的链接
 *
 * @component
 * @param props - 图片属性，继承自 ImageProps 接口
 * @param props.src - 图片的源地址
 * @returns 返回一个图片组件，如果加载失败则返回一个链接
 *
 * @example
 * ```tsx
 * <ImageAndError src="https://example.com/image.jpg" alt="示例图片" />
 * ```
 */
export declare const ImageAndError: React.FC<ImageProps>;
/**
 * 修复图片大小的问题
 * @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;
