import React from 'react';
import Preview from './image-preview';
import type { Functions, PreviewImageProps } from './image-preview';
import type { IDialogPropTypes } from '../components/rc-dialog/IDialogPropTypes';
export interface PreviewProps {
    visible: boolean;
    onVisibleChange?: (visible: boolean) => void;
}
export interface ImageProps {
    prefixCls?: string;
    /** 显示放大缩小等功能，传入函数自定义功能按钮 */
    functions?: Functions;
    /** 图片描述 */
    alt?: string;
    /** 图片宽度 */
    width?: number | string;
    /** 图片高度 */
    height?: number | string;
    /** 预览参数 */
    preview?: boolean | PreviewProps;
    /** 图片地址 */
    src: string;
    /** 图片预览地址 */
    previewSrc?: string;
    /** 加载失败容错地址 */
    fallback?: string;
    /** 确定图片如何适应容器框，同原生 object-fit */
    fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
    /** 多张预览 */
    multiple?: boolean;
    /** 多张图片列表 */
    images?: PreviewImageProps[];
    /** 图片唯一值 */
    id?: PreviewImageProps['uid'];
    style?: React.CSSProperties;
    /** 错误回调 */
    onError?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
    onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
    /** 提示信息挂载点，默认挂载到 body 上 */
    getContainer?: IDialogPropTypes['getContainer'];
    className?: string;
}
export interface CompoundedImage extends React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLImageElement>> {
    Preview: typeof Preview;
}
export declare type RefElement = HTMLImageElement | HTMLDivElement;
declare const Image: CompoundedImage;
export default Image;
