import { ScreenSpaceEventType, KeyboardEventModifier, Cartesian2 } from 'cesium'; import { FC } from 'react'; export type ScreenSpaceEventProps = { /** If empty, the event will be removed even if there is the default event. */ action?: (e: { position: Cartesian2; } | { startPosition: Cartesian2; endPosition: Cartesian2; }) => void; /** * Keyboard modifier(s) that must be held for the action to fire. * * - Single value (`KeyboardEventModifier.ALT`): action fires when only that modifier is held. * - Array (`[ALT, SHIFT]`): chord — action fires only when all listed modifiers are held simultaneously. * * Multi-key chords require Cesium 1.142+. Content-equal but reference-fresh arrays do not retrigger the underlying `setInputAction` call. */ modifier?: KeyboardEventModifier | KeyboardEventModifier[]; type: ScreenSpaceEventType; }; declare const ScreenSpaceEvent: FC; export default ScreenSpaceEvent;