import * as React from 'react'; import { StandardProps } from '../../common'; export declare type Status = 'idle' | 'loading' | 'loaded' | 'error'; export interface ImageProps extends StandardProps { /** * @ignore */ children?: void; /** * This attribute defines the alternative text describing the image. * Users will see this text displayed if the image URL is wrong, * the image is not in one of the supported formats, or if the image is not yet downloaded. */ alt: string; /** * When specified, image will be preloaded and the preloader shown during the preloading. * Default is false. * @default false */ preload?: boolean; /** * The image URL. This attribute is mandatory for the component. */ src: string; /** * Custom preloader component to indicate loading. */ preloader?: React.ReactChild; /** * Custom error component that is displayed when the loading fails. */ error?: React.ReactChild; } export interface ImageState { status: Status; } /** * Image component is meant to be a simple wrapper for standard DOM `img` element. * Component is fluid by default, meaning that it has max-width: 100% and height: auto, * so that it scales with it's parent. */ export declare class Image extends React.Component { constructor(props: ImageProps); componentDidMount(): void; render(): JSX.Element; static inner: { readonly StyledImageWrapper: any; readonly StyledImage: any; readonly StyledError: any; readonly Spinner: React.SFC & { inner: { readonly SpinningContainer: any; readonly Cubes: any; readonly Cube0: any; readonly Cube1: any; readonly SpinningLabel: any; }; }; }; }