import * as React from 'react'; import { ConfigConsumerProps } from '../config-provider'; export interface ImageProps { src: string | (() => Promise); threshold?: number; lazy?: boolean; force?: boolean; noBorder?: boolean; width?: number; height?: number; size?: string; onChange?: (status?: string, el?: HTMLElement | null) => void; loadingImg?: string; errorImg?: React.ReactNode | string; prefixCls?: string; className?: string; [key: string]: any; } export interface ImageState { useFailedElement: boolean; src: string | (() => Promise); } declare class LazyImage extends React.Component { static config: (config: ImageProps) => void; currentImg: ImageProps; imageNode: HTMLDivElement; constructor(props: ImageProps); UNSAFE_componentWillReceiveProps(nextProps: ImageProps): void; setSrc: (src: string | (() => Promise)) => void; setCurrentImg: (props: ImageProps) => void; onLoad: (el: HTMLImageElement) => void; onError: (el: HTMLImageElement) => void; onAppear: (el: HTMLImageElement) => void; saveImageNode: (node: HTMLDivElement) => void; replaceClass(newClass: string, oldClass: string): void; renderImage: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default LazyImage;