import * as React from 'react'; import type IconRegistry from '@splunk/visualization-context/IconRegistry'; interface RemoteIconProps { alt?: string; iconURL?: string; color?: string; width?: number | string; height?: number | string; opacity?: number; onIconClick?: (event: React.MouseEvent) => void; } interface RemoteIconState { iconDataURI: string | null; } type IconRegistryValue = IconRegistry | null; declare class RemoteIcon extends React.PureComponent { static readonly contextType: React.Context; context: IconRegistryValue; static readonly BASIC_SHAPES: string[]; constructor(props: RemoteIconProps); UNSAFE_componentWillMount(): void; componentDidUpdate(prevProps: any): void; /** * Check if the iconURL is a registry URL/dataURI/direct URL and fetch from the registry when required * @param {String} iconURL * @param {String} color */ getIcon(iconURL: any, color: any): Promise; /** * check if icon is a registry url * @param {String} src */ isRegistryURL(src?: string): boolean; colorIcon(dataURI: any, color: any): void; render(): React.JSX.Element; } export default RemoteIcon;