import * as React from 'react'; import type ImageRegistry from '@splunk/visualization-context/ImageRegistry'; /** * check if an image is considered as remote image * @param {*} src */ export declare const isRemoteImage: (src?: string) => boolean; interface RemoteImageProps { imageURL: string; width?: number | string; height?: number | string; preserveAspectRatio: boolean; title: string; } interface RemoteImageState { preserveAspectRatio: boolean; imageDataURI: string | null; } type ImageRegistryValue = ImageRegistry | null; declare class RemoteImage extends React.PureComponent { static readonly contextType: React.Context; context: ImageRegistryValue; constructor(props: RemoteImageProps); componentDidMount(): void; componentDidUpdate(prevProps: RemoteImageProps): void; getImage(imageURL: string): Promise; render(): React.JSX.Element; } export default RemoteImage;