import { ReactNode } from 'react'; import { SpinProps } from '../Spin'; export interface ImageProps { alt?: string; className?: string; height?: number | string; width?: number | string; thumbnail?: string; lazy?: boolean | number; onClick?(e: React.MouseEvent): void; placeholder?: ReactNode | string; shape?: 'rounded' | 'circle' | 'thumbnail'; src?: string; style?: React.CSSProperties; target?: '_blank' | '_self' | '_modal' | '_download'; title?: string; getContainer?: () => HTMLElement; error?: ReactNode; spinProps?: SpinProps; fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'; onLoad?(e: Event): void; imageMaskClassName?: string; } export interface IImageProps extends ImageProps { onTouchStart(e: any): any; onTouchEnd(e: any): any; } export interface GroupProps { pile?: boolean; lazy?: boolean; height?: number | string; width?: number | string; target?: '_modal' | '_blank' | '_self' | '_download'; style?: React.CSSProperties; } export interface ImageItem { key: string | number; src: string; } export interface MagnifyProps { src: string; position: string; } export interface GalleryProps { onClose(e: any): void; current: number; images: ImageItem[]; }