import { PureComponent } from "react"; import { Url } from "@ef-carbon/primitive"; import IDimensions from "../IDimensions"; import IImage, { IOptions } from "./IImage"; export { IDimensions, Url }; export interface IProps extends IOptions { } export default abstract class Image

extends PureComponent implements IImage { abstract readonly width: number | undefined; abstract readonly height: number | undefined; abstract readonly url: Url; abstract readonly loading: boolean; abstract readonly loaded: boolean; abstract readonly unloaded: boolean; abstract readonly error: Error | undefined; abstract unload(): Promise; }