export default class IdealImage extends React.Component { static defaultProps: { shouldAutoDownload: ({ connection, size, threshold, possiblySlowNetwork, }: { connection: any; size: any; threshold: any; possiblySlowNetwork: any; }) => boolean; getMessage: (icon: any, state: any) => "Loading..." | "Your browser is offline. Image not loaded" | "404. Image not found" | "Error. Click to reload" | (string | React.JSX.Element)[] | "Click to load" | null; getIcon: (state: any) => string; loader: string; }; constructor(props: any); state: { loadState: string; connection: { downlink: any; rtt: any; effectiveType: any; } | null; onLine: boolean; overThreshold: boolean; inViewport: boolean; userTriggered: boolean; possiblySlowNetwork: boolean; }; componentDidMount(): void; updateConnection: (() => void) | undefined; possiblySlowNetworkListener: ((e: any) => void) | undefined; updateOnlineStatus: (() => void) | undefined; componentWillUnmount(): void; onClick: () => void; clear(): void; loader: Promise | undefined; cancel(userTriggered: any): void; loadStateChange(loadState: any, userTriggered: any, loadInfo?: null): void; load: (userTriggered: any) => void; onEnter: () => void; onLeave: () => void; render(): React.JSX.Element; } import React from 'react';