import { GeoJsonPrimitive as CesiumGeoJsonPrimitive, Resource, GeoJsonPrimitiveConstructorOptions } from 'cesium'; import { EventProps, PickCesiumProps, SuspenseProps } from '../core'; export type GeoJsonPrimitiveShape = CesiumGeoJsonPrimitive & { show: boolean; }; export type GeoJsonPrimitiveCesiumProps = PickCesiumProps; export type GeoJsonPrimitiveCesiumReadonlyProps = { /** Ellipsoid used to project GeoJSON coordinates. Fixed at creation time. */ ellipsoid?: GeoJsonPrimitiveConstructorOptions["ellipsoid"]; /** Whether features in the primitive can be picked. Fixed at creation time. */ allowPicking?: boolean; /** Factory invoked to build the picked-object payload. Fixed at creation time. */ pickObjectFactory?: GeoJsonPrimitiveConstructorOptions["pickObjectFactory"]; }; export type GeoJsonPrimitiveOtherProps = EventProps & SuspenseProps & { /** URL to fetch GeoJSON from. Mutually exclusive with `data` — if both are set, `url` wins. */ url?: string | Resource; /** Inline GeoJSON FeatureCollection. Mutually exclusive with `url`. */ data?: object; /** Fires once the primitive is constructed, before it is attached to the scene's primitive collection. */ onReady?: (primitive: GeoJsonPrimitiveShape) => void; /** Fires if `fromUrl` rejects or the inline GeoJSON fails to parse. */ onError?: (err: unknown) => void; }; export type GeoJsonPrimitiveProps = GeoJsonPrimitiveCesiumProps & GeoJsonPrimitiveCesiumReadonlyProps & GeoJsonPrimitiveOtherProps; declare const cesiumProps: readonly ["show"]; export declare const otherProps: readonly ["url", "data", "onReady", "onError", "suspense", "cacheKey"]; declare const GeoJsonPrimitive: import('..').CesiumComponentType; export default GeoJsonPrimitive;