import MapView from '@arcgis/core/views/MapView'; import SceneView from '@arcgis/core/views/SceneView'; /** * Constructs maptip viewer instances. * Service interface of `maptips.TipViewerFactory` OSGI service. */ interface TipViewerFactory { /** * Creates a new tip viewer for the given view. * The factory respects the maptips bundle configuration. * * @param view An esri view instance (2d or 3d). */ createForView(view: MapView | SceneView): TipViewer; } /** * The TipViewer watches its associated view for mouse movements and displays * a maptip when a relevant feature has been hit. * * TipViewers do not have a programmatic interface, expect for their `destroy()` method. */ interface TipViewer { /** * Releases all resources acquired by this instance. */ destroy(): void; } export type { TipViewer, TipViewerFactory };