declare class MGLAccountManager extends NSObject { static accessToken(): string; static alloc(): MGLAccountManager; // inherited from NSObject static mapboxMetricsEnabledSettingShownInApp(): boolean; static new(): MGLAccountManager; // inherited from NSObject static setAccessToken(accessToken: string): void; } interface MGLAnnotation extends NSObjectProtocol { coordinate: CLLocationCoordinate2D; subtitle?: string; title?: string; } declare var MGLAnnotation: { prototype: MGLAnnotation; }; declare class MGLAnnotationImage extends NSObject implements NSSecureCoding { static alloc(): MGLAnnotationImage; // inherited from NSObject static annotationImageWithImageReuseIdentifier(image: UIImage, reuseIdentifier: string): MGLAnnotationImage; static new(): MGLAnnotationImage; // inherited from NSObject enabled: boolean; image: UIImage; readonly reuseIdentifier: string; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare const enum MGLAnnotationVerticalAlignment { Center = 0, Top = 1, Bottom = 2 } declare class MGLAnnotationView extends UIView implements NSSecureCoding { static alloc(): MGLAnnotationView; // inherited from NSObject static appearance(): MGLAnnotationView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): MGLAnnotationView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MGLAnnotationView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): MGLAnnotationView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MGLAnnotationView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): MGLAnnotationView; // inherited from UIAppearance static new(): MGLAnnotationView; // inherited from NSObject annotation: MGLAnnotation; centerOffset: CGVector; readonly dragState: MGLAnnotationViewDragState; draggable: boolean; enabled: boolean; readonly reuseIdentifier: string; rotatesToMatchCamera: boolean; scalesWithViewingDistance: boolean; selected: boolean; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { annotation: MGLAnnotation; reuseIdentifier: string; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { reuseIdentifier: string; }); encodeWithCoder(aCoder: NSCoder): void; initWithAnnotationReuseIdentifier(annotation: MGLAnnotation, reuseIdentifier: string): this; initWithCoder(aDecoder: NSCoder): this; initWithReuseIdentifier(reuseIdentifier: string): this; prepareForReuse(): void; setDragStateAnimated(dragState: MGLAnnotationViewDragState, animated: boolean): void; setSelectedAnimated(selected: boolean, animated: boolean): void; } declare const enum MGLAnnotationViewDragState { None = 0, Starting = 1, Dragging = 2, Canceling = 3, Ending = 4 } declare class MGLAttributionInfo extends NSObject { static alloc(): MGLAttributionInfo; // inherited from NSObject static new(): MGLAttributionInfo; // inherited from NSObject URL: NSURL; feedbackLink: boolean; title: NSAttributedString; constructor(o: { title: NSAttributedString; URL: NSURL; }); feedbackURLAtCenterCoordinateZoomLevel(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number): NSURL; initWithTitleURL(title: NSAttributedString, URL: NSURL): this; } declare class MGLBackgroundStyleLayer extends MGLStyleLayer { static alloc(): MGLBackgroundStyleLayer; // inherited from NSObject static new(): MGLBackgroundStyleLayer; // inherited from NSObject backgroundColor: MGLStyleValue; backgroundColorTransition: MGLTransition; backgroundOpacity: MGLStyleValue; backgroundOpacityTransition: MGLTransition; backgroundPattern: MGLStyleValue; backgroundPatternTransition: MGLTransition; constructor(o: { identifier: string; }); initWithIdentifier(identifier: string): this; } interface MGLCalloutView extends NSObjectProtocol { anchoredToAnnotation?: boolean; delegate: MGLCalloutViewDelegate; dismissesAutomatically?: boolean; leftAccessoryView: UIView; representedObject: MGLAnnotation; rightAccessoryView: UIView; dismissCalloutAnimated(animated: boolean): void; presentCalloutFromRectInViewConstrainedToViewAnimated(rect: CGRect, view: UIView, constrainedView: UIView, animated: boolean): void; } declare var MGLCalloutView: { prototype: MGLCalloutView; }; interface MGLCalloutViewDelegate extends NSObjectProtocol { calloutViewDidAppear?(calloutView: UIView): void; calloutViewShouldHighlight?(calloutView: UIView): boolean; calloutViewTapped?(calloutView: UIView): void; calloutViewWillAppear?(calloutView: UIView): void; } declare var MGLCalloutViewDelegate: { prototype: MGLCalloutViewDelegate; }; declare class MGLCameraStyleFunction extends MGLStyleFunction { static alloc(): MGLCameraStyleFunction; // inherited from NSObject static functionWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLCameraStyleFunction; // inherited from MGLStyleFunction static functionWithInterpolationModeStopsOptions(interpolationMode: MGLInterpolationMode, stops: NSDictionary>, options: NSDictionary): MGLCameraStyleFunction; static functionWithStops(stops: NSDictionary>): MGLCameraStyleFunction; // inherited from MGLStyleFunction static new(): MGLCameraStyleFunction; // inherited from NSObject static valueWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLCameraStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCameraStopsOptions(interpolationMode: MGLInterpolationMode, cameraStops: NSDictionary>, options: NSDictionary): MGLCameraStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCompositeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, compositeStops: NSDictionary>>, attributeName: string, options: NSDictionary): MGLCameraStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeSourceStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, sourceStops: NSDictionary>, attributeName: string, options: NSDictionary): MGLCameraStyleFunction; // inherited from MGLStyleValue static valueWithRawValue(rawValue: T): MGLCameraStyleFunction; // inherited from MGLStyleValue static valueWithStops(stops: NSDictionary>): MGLCameraStyleFunction; // inherited from MGLStyleValue } declare const enum MGLCircleScaleAlignment { Map = 0, Viewport = 1 } declare class MGLCircleStyleLayer extends MGLVectorStyleLayer { static alloc(): MGLCircleStyleLayer; // inherited from NSObject static new(): MGLCircleStyleLayer; // inherited from NSObject circleBlur: MGLStyleValue; circleBlurTransition: MGLTransition; circleColor: MGLStyleValue; circleColorTransition: MGLTransition; circleOpacity: MGLStyleValue; circleOpacityTransition: MGLTransition; circleRadius: MGLStyleValue; circleRadiusTransition: MGLTransition; circleScaleAlignment: MGLStyleValue; circleStrokeColor: MGLStyleValue; circleStrokeColorTransition: MGLTransition; circleStrokeOpacity: MGLStyleValue; circleStrokeOpacityTransition: MGLTransition; circleStrokeWidth: MGLStyleValue; circleStrokeWidthTransition: MGLTransition; circleTranslation: MGLStyleValue; circleTranslationAnchor: MGLStyleValue; circleTranslationTransition: MGLTransition; constructor(o: { identifier: string; source: MGLSource; }); initWithIdentifierSource(identifier: string, source: MGLSource): this; } declare const enum MGLCircleTranslationAnchor { Map = 0, Viewport = 1 } declare class MGLClockDirectionFormatter extends NSFormatter { static alloc(): MGLClockDirectionFormatter; // inherited from NSObject static new(): MGLClockDirectionFormatter; // inherited from NSObject unitStyle: NSFormattingUnitStyle; stringFromDirection(direction: number): string; } declare class MGLCompassDirectionFormatter extends NSFormatter { static alloc(): MGLCompassDirectionFormatter; // inherited from NSObject static new(): MGLCompassDirectionFormatter; // inherited from NSObject unitStyle: NSFormattingUnitStyle; stringFromDirection(direction: number): string; } declare class MGLCompositeStyleFunction extends MGLStyleFunction { static alloc(): MGLCompositeStyleFunction; // inherited from NSObject static functionWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLCompositeStyleFunction; // inherited from MGLStyleFunction static functionWithInterpolationModeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, stops: NSDictionary>>, attributeName: string, options: NSDictionary): MGLCompositeStyleFunction; static functionWithStops(stops: NSDictionary>): MGLCompositeStyleFunction; // inherited from MGLStyleFunction static new(): MGLCompositeStyleFunction; // inherited from NSObject static valueWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLCompositeStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCameraStopsOptions(interpolationMode: MGLInterpolationMode, cameraStops: NSDictionary>, options: NSDictionary): MGLCompositeStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCompositeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, compositeStops: NSDictionary>>, attributeName: string, options: NSDictionary): MGLCompositeStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeSourceStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, sourceStops: NSDictionary>, attributeName: string, options: NSDictionary): MGLCompositeStyleFunction; // inherited from MGLStyleValue static valueWithRawValue(rawValue: T): MGLCompositeStyleFunction; // inherited from MGLStyleValue static valueWithStops(stops: NSDictionary>): MGLCompositeStyleFunction; // inherited from MGLStyleValue attributeName: string; defaultValue: MGLStyleValue; } declare class MGLConstantStyleValue extends MGLStyleValue { static alloc(): MGLConstantStyleValue; // inherited from NSObject static new(): MGLConstantStyleValue; // inherited from NSObject static valueWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLConstantStyleValue; // inherited from MGLStyleValue static valueWithInterpolationModeCameraStopsOptions(interpolationMode: MGLInterpolationMode, cameraStops: NSDictionary>, options: NSDictionary): MGLConstantStyleValue; // inherited from MGLStyleValue static valueWithInterpolationModeCompositeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, compositeStops: NSDictionary>>, attributeName: string, options: NSDictionary): MGLConstantStyleValue; // inherited from MGLStyleValue static valueWithInterpolationModeSourceStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, sourceStops: NSDictionary>, attributeName: string, options: NSDictionary): MGLConstantStyleValue; // inherited from MGLStyleValue static valueWithRawValue(rawValue: T): MGLConstantStyleValue; // inherited from MGLStyleValue static valueWithStops(stops: NSDictionary>): MGLConstantStyleValue; // inherited from MGLStyleValue rawValue: T; constructor(o: { rawValue: T; }); initWithRawValue(rawValue: T): this; } interface MGLCoordinateBounds { sw: CLLocationCoordinate2D; ne: CLLocationCoordinate2D; } declare var MGLCoordinateBounds: interop.StructType; declare class MGLCoordinateFormatter extends NSFormatter { static alloc(): MGLCoordinateFormatter; // inherited from NSObject static new(): MGLCoordinateFormatter; // inherited from NSObject allowsMinutes: boolean; allowsSeconds: boolean; unitStyle: NSFormattingUnitStyle; stringFromCoordinate(coordinate: CLLocationCoordinate2D): string; } interface MGLCoordinateSpan { latitudeDelta: number; longitudeDelta: number; } declare var MGLCoordinateSpan: interop.StructType; declare var MGLCoordinateSpanZero: MGLCoordinateSpan; declare class MGLDistanceFormatter extends NSLengthFormatter { static alloc(): MGLDistanceFormatter; // inherited from NSObject static new(): MGLDistanceFormatter; // inherited from NSObject stringFromDistance(distance: number): string; } declare const enum MGLErrorCode { Unknown = -1, NotFound = 1, BadServerResponse = 2, ConnectionFailed = 3, ParseStyleFailed = 4, LoadStyleFailed = 5 } declare var MGLErrorDomain: string; interface MGLFeature extends MGLAnnotation { attributes: NSDictionary; identifier: any; attributeForKey(key: string): any; geoJSONDictionary(): NSDictionary; } declare var MGLFeature: { prototype: MGLFeature; }; declare class MGLFillExtrusionStyleLayer extends MGLVectorStyleLayer { static alloc(): MGLFillExtrusionStyleLayer; // inherited from NSObject static new(): MGLFillExtrusionStyleLayer; // inherited from NSObject fillExtrusionBase: MGLStyleValue; fillExtrusionBaseTransition: MGLTransition; fillExtrusionColor: MGLStyleValue; fillExtrusionColorTransition: MGLTransition; fillExtrusionHeight: MGLStyleValue; fillExtrusionHeightTransition: MGLTransition; fillExtrusionOpacity: MGLStyleValue; fillExtrusionOpacityTransition: MGLTransition; fillExtrusionPattern: MGLStyleValue; fillExtrusionPatternTransition: MGLTransition; fillExtrusionTranslation: MGLStyleValue; fillExtrusionTranslationAnchor: MGLStyleValue; fillExtrusionTranslationTransition: MGLTransition; constructor(o: { identifier: string; source: MGLSource; }); initWithIdentifierSource(identifier: string, source: MGLSource): this; } declare const enum MGLFillExtrusionTranslationAnchor { Map = 0, Viewport = 1 } declare class MGLFillStyleLayer extends MGLVectorStyleLayer { static alloc(): MGLFillStyleLayer; // inherited from NSObject static new(): MGLFillStyleLayer; // inherited from NSObject fillAntialiased: MGLStyleValue; fillColor: MGLStyleValue; fillColorTransition: MGLTransition; fillOpacity: MGLStyleValue; fillOpacityTransition: MGLTransition; fillOutlineColor: MGLStyleValue; fillOutlineColorTransition: MGLTransition; fillPattern: MGLStyleValue; fillPatternTransition: MGLTransition; fillTranslation: MGLStyleValue; fillTranslationAnchor: MGLStyleValue; fillTranslationTransition: MGLTransition; constructor(o: { identifier: string; source: MGLSource; }); initWithIdentifierSource(identifier: string, source: MGLSource): this; } declare const enum MGLFillTranslationAnchor { Map = 0, Viewport = 1 } declare class MGLForegroundStyleLayer extends MGLStyleLayer { static alloc(): MGLForegroundStyleLayer; // inherited from NSObject static new(): MGLForegroundStyleLayer; // inherited from NSObject readonly sourceIdentifier: string; } declare const enum MGLIconRotationAlignment { Map = 0, Viewport = 1, Auto = 2 } declare const enum MGLIconTextFit { None = 0, Width = 1, Height = 2, Both = 3 } declare const enum MGLIconTranslationAnchor { Map = 0, Viewport = 1 } declare const enum MGLInterpolationMode { Exponential = 0, Interval = 1, Categorical = 2, Identity = 3 } declare class MGLLight extends NSObject { static alloc(): MGLLight; // inherited from NSObject static new(): MGLLight; // inherited from NSObject anchor: MGLStyleValue; color: MGLStyleValue; colorTransition: MGLTransition; intensity: MGLStyleValue; intensityTransition: MGLTransition; position: MGLStyleValue; positionTransition: MGLTransition; } declare const enum MGLLightAnchor { Map = 0, Viewport = 1 } declare const enum MGLLineCap { Butt = 0, Round = 1, Square = 2 } declare const enum MGLLineJoin { Bevel = 0, Round = 1, Miter = 2 } declare class MGLLineStyleLayer extends MGLVectorStyleLayer { static alloc(): MGLLineStyleLayer; // inherited from NSObject static new(): MGLLineStyleLayer; // inherited from NSObject lineBlur: MGLStyleValue; lineBlurTransition: MGLTransition; lineCap: MGLStyleValue; lineColor: MGLStyleValue; lineColorTransition: MGLTransition; lineDashPattern: MGLStyleValue>; lineDashPatternTransition: MGLTransition; lineGapWidth: MGLStyleValue; lineGapWidthTransition: MGLTransition; lineJoin: MGLStyleValue; lineMiterLimit: MGLStyleValue; lineOffset: MGLStyleValue; lineOffsetTransition: MGLTransition; lineOpacity: MGLStyleValue; lineOpacityTransition: MGLTransition; linePattern: MGLStyleValue; linePatternTransition: MGLTransition; lineRoundLimit: MGLStyleValue; lineTranslation: MGLStyleValue; lineTranslationAnchor: MGLStyleValue; lineTranslationTransition: MGLTransition; lineWidth: MGLStyleValue; lineWidthTransition: MGLTransition; constructor(o: { identifier: string; source: MGLSource; }); initWithIdentifierSource(identifier: string, source: MGLSource): this; } declare const enum MGLLineTranslationAnchor { Map = 0, Viewport = 1 } declare class MGLMapCamera extends NSObject implements NSCopying, NSSecureCoding { static alloc(): MGLMapCamera; // inherited from NSObject static camera(): MGLMapCamera; static cameraLookingAtCenterCoordinateFromDistancePitchHeading(centerCoordinate: CLLocationCoordinate2D, distance: number, pitch: number, heading: number): MGLMapCamera; static cameraLookingAtCenterCoordinateFromEyeCoordinateEyeAltitude(centerCoordinate: CLLocationCoordinate2D, eyeCoordinate: CLLocationCoordinate2D, eyeAltitude: number): MGLMapCamera; static new(): MGLMapCamera; // inherited from NSObject altitude: number; centerCoordinate: CLLocationCoordinate2D; heading: number; pitch: number; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; isEqualToMapCamera(otherCamera: MGLMapCamera): boolean; } declare const enum MGLMapDebugMaskOptions { TileBoundariesMask = 2, TileInfoMask = 4, TimestampsMask = 8, CollisionBoxesMask = 16, OverdrawVisualizationMask = 32 } declare class MGLMapView extends UIView { static alloc(): MGLMapView; // inherited from NSObject static appearance(): MGLMapView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): MGLMapView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MGLMapView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): MGLMapView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MGLMapView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): MGLMapView; // inherited from UIAppearance static new(): MGLMapView; // inherited from NSObject allowsRotating: boolean; allowsScrolling: boolean; allowsTilting: boolean; allowsZooming: boolean; readonly annotations: NSArray; readonly attributionButton: UIButton; readonly bundledStyleURLs: NSArray; camera: MGLMapCamera; centerCoordinate: CLLocationCoordinate2D; readonly compassView: UIImageView; contentInset: UIEdgeInsets; debugActive: boolean; debugMask: MGLMapDebugMaskOptions; decelerationRate: number; delegate: MGLMapViewDelegate; direction: number; displayHeadingCalibration: boolean; latitude: number; readonly logoView: UIImageView; longitude: number; maximumZoomLevel: number; minimumZoomLevel: number; pitchEnabled: boolean; rotateEnabled: boolean; readonly scaleBar: UIView; scrollEnabled: boolean; selectedAnnotations: NSArray; showsUserLocation: boolean; readonly style: MGLStyle; styleClasses: NSArray; styleURL: NSURL; targetCoordinate: CLLocationCoordinate2D; readonly userLocation: MGLUserLocation; userLocationVerticalAlignment: MGLAnnotationVerticalAlignment; readonly userLocationVisible: boolean; userTrackingMode: MGLUserTrackingMode; readonly visibleAnnotations: NSArray; visibleCoordinateBounds: MGLCoordinateBounds; zoomEnabled: boolean; zoomLevel: number; constructor(o: { frame: CGRect; styleURL: NSURL; }); addAnnotation(annotation: MGLAnnotation): void; addAnnotations(annotations: NSArray): void; addOverlay(overlay: MGLOverlay): void; addOverlays(overlays: NSArray): void; addStyleClass(styleClass: string): void; anchorPointForGesture(gesture: UIGestureRecognizer): CGPoint; cameraThatFitsCoordinateBounds(bounds: MGLCoordinateBounds): MGLMapCamera; cameraThatFitsCoordinateBoundsEdgePadding(bounds: MGLCoordinateBounds, insets: UIEdgeInsets): MGLMapCamera; convertCoordinateBoundsToRectToView(bounds: MGLCoordinateBounds, view: UIView): CGRect; convertCoordinateToPointToView(coordinate: CLLocationCoordinate2D, view: UIView): CGPoint; convertPointToCoordinateFromView(point: CGPoint, view: UIView): CLLocationCoordinate2D; convertRectToCoordinateBoundsFromView(rect: CGRect, view: UIView): MGLCoordinateBounds; dequeueReusableAnnotationImageWithIdentifier(identifier: string): MGLAnnotationImage; dequeueReusableAnnotationViewWithIdentifier(identifier: string): MGLAnnotationView; deselectAnnotationAnimated(annotation: MGLAnnotation, animated: boolean): void; emptyMemoryCache(): void; flyToCameraCompletionHandler(camera: MGLMapCamera, completion: () => void): void; flyToCameraWithDurationCompletionHandler(camera: MGLMapCamera, duration: number, completion: () => void): void; flyToCameraWithDurationPeakAltitudeCompletionHandler(camera: MGLMapCamera, duration: number, peakAltitude: number, completion: () => void): void; hasStyleClass(styleClass: string): boolean; initWithFrameStyleURL(frame: CGRect, styleURL: NSURL): this; metersPerPixelAtLatitude(latitude: number): number; metersPerPointAtLatitude(latitude: number): number; reloadStyle(sender: any): void; removeAnnotation(annotation: MGLAnnotation): void; removeAnnotations(annotations: NSArray): void; removeOverlay(overlay: MGLOverlay): void; removeOverlays(overlays: NSArray): void; removeStyleClass(styleClass: string): void; resetNorth(): void; resetPosition(): void; selectAnnotationAnimated(annotation: MGLAnnotation, animated: boolean): void; setCameraAnimated(camera: MGLMapCamera, animated: boolean): void; setCameraWithDurationAnimationTimingFunction(camera: MGLMapCamera, duration: number, _function: CAMediaTimingFunction): void; setCameraWithDurationAnimationTimingFunctionCompletionHandler(camera: MGLMapCamera, duration: number, _function: CAMediaTimingFunction, completion: () => void): void; setCenterCoordinateAnimated(coordinate: CLLocationCoordinate2D, animated: boolean): void; setCenterCoordinateZoomLevelAnimated(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number, animated: boolean): void; setCenterCoordinateZoomLevelDirectionAnimated(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number, direction: number, animated: boolean): void; setCenterCoordinateZoomLevelDirectionAnimatedCompletionHandler(centerCoordinate: CLLocationCoordinate2D, zoomLevel: number, direction: number, animated: boolean, completion: () => void): void; setContentInsetAnimated(contentInset: UIEdgeInsets, animated: boolean): void; setDirectionAnimated(direction: number, animated: boolean): void; setTargetCoordinateAnimated(targetCoordinate: CLLocationCoordinate2D, animated: boolean): void; setUserLocationVerticalAlignmentAnimated(alignment: MGLAnnotationVerticalAlignment, animated: boolean): void; setUserTrackingModeAnimated(mode: MGLUserTrackingMode, animated: boolean): void; setVisibleCoordinateBoundsAnimated(bounds: MGLCoordinateBounds, animated: boolean): void; setVisibleCoordinateBoundsEdgePaddingAnimated(bounds: MGLCoordinateBounds, insets: UIEdgeInsets, animated: boolean): void; setVisibleCoordinatesCountEdgePaddingAnimated(coordinates: interop.Pointer | interop.Reference, count: number, insets: UIEdgeInsets, animated: boolean): void; setVisibleCoordinatesCountEdgePaddingDirectionDurationAnimationTimingFunctionCompletionHandler(coordinates: interop.Pointer | interop.Reference, count: number, insets: UIEdgeInsets, direction: number, duration: number, _function: CAMediaTimingFunction, completion: () => void): void; setZoomLevelAnimated(zoomLevel: number, animated: boolean): void; showAnnotationsAnimated(annotations: NSArray, animated: boolean): void; showAnnotationsEdgePaddingAnimated(annotations: NSArray, insets: UIEdgeInsets, animated: boolean): void; toggleDebug(): void; viewForAnnotation(annotation: MGLAnnotation): MGLAnnotationView; visibleAnnotationsInRect(rect: CGRect): NSArray; visibleFeaturesAtPoint(point: CGPoint): NSArray; visibleFeaturesAtPointInStyleLayersWithIdentifiers(point: CGPoint, styleLayerIdentifiers: NSSet): NSArray; visibleFeaturesAtPointInStyleLayersWithIdentifiersPredicate(point: CGPoint, styleLayerIdentifiers: NSSet, predicate: NSPredicate): NSArray; visibleFeaturesInRect(rect: CGRect): NSArray; visibleFeaturesInRectInStyleLayersWithIdentifiers(rect: CGRect, styleLayerIdentifiers: NSSet): NSArray; visibleFeaturesInRectInStyleLayersWithIdentifiersPredicate(rect: CGRect, styleLayerIdentifiers: NSSet, predicate: NSPredicate): NSArray; } declare var MGLMapViewDecelerationRateFast: number; declare var MGLMapViewDecelerationRateImmediate: number; declare var MGLMapViewDecelerationRateNormal: number; interface MGLMapViewDelegate extends NSObjectProtocol { mapViewAlphaForShapeAnnotation?(mapView: MGLMapView, annotation: MGLShape): number; mapViewAnnotationCalloutAccessoryControlTapped?(mapView: MGLMapView, annotation: MGLAnnotation, control: UIControl): void; mapViewAnnotationCanShowCallout?(mapView: MGLMapView, annotation: MGLAnnotation): boolean; mapViewCalloutViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): MGLCalloutView; mapViewDidAddAnnotationViews?(mapView: MGLMapView, annotationViews: NSArray): void; mapViewDidChangeUserTrackingModeAnimated?(mapView: MGLMapView, mode: MGLUserTrackingMode, animated: boolean): void; mapViewDidDeselectAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): void; mapViewDidDeselectAnnotationView?(mapView: MGLMapView, annotationView: MGLAnnotationView): void; mapViewDidFailLoadingMapWithError?(mapView: MGLMapView, error: NSError): void; mapViewDidFailToLocateUserWithError?(mapView: MGLMapView, error: NSError): void; mapViewDidFinishLoadingMap?(mapView: MGLMapView): void; mapViewDidFinishLoadingStyle?(mapView: MGLMapView, style: MGLStyle): void; mapViewDidFinishRenderingFrameFullyRendered?(mapView: MGLMapView, fullyRendered: boolean): void; mapViewDidFinishRenderingMapFullyRendered?(mapView: MGLMapView, fullyRendered: boolean): void; mapViewDidSelectAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): void; mapViewDidSelectAnnotationView?(mapView: MGLMapView, annotationView: MGLAnnotationView): void; mapViewDidStopLocatingUser?(mapView: MGLMapView): void; mapViewDidUpdateUserLocation?(mapView: MGLMapView, userLocation: MGLUserLocation): void; mapViewFillColorForPolygonAnnotation?(mapView: MGLMapView, annotation: MGLPolygon): UIColor; mapViewImageForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): MGLAnnotationImage; mapViewLeftCalloutAccessoryViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): UIView; mapViewLineWidthForPolylineAnnotation?(mapView: MGLMapView, annotation: MGLPolyline): number; mapViewRegionDidChangeAnimated?(mapView: MGLMapView, animated: boolean): void; mapViewRegionIsChanging?(mapView: MGLMapView): void; mapViewRegionWillChangeAnimated?(mapView: MGLMapView, animated: boolean): void; mapViewRightCalloutAccessoryViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): UIView; mapViewShouldChangeFromCameraToCamera?(mapView: MGLMapView, oldCamera: MGLMapCamera, newCamera: MGLMapCamera): boolean; mapViewStrokeColorForShapeAnnotation?(mapView: MGLMapView, annotation: MGLShape): UIColor; mapViewTapOnCalloutForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): void; mapViewViewForAnnotation?(mapView: MGLMapView, annotation: MGLAnnotation): MGLAnnotationView; mapViewWillStartLoadingMap?(mapView: MGLMapView): void; mapViewWillStartLocatingUser?(mapView: MGLMapView): void; mapViewWillStartRenderingFrame?(mapView: MGLMapView): void; mapViewWillStartRenderingMap?(mapView: MGLMapView): void; } declare var MGLMapViewDelegate: { prototype: MGLMapViewDelegate; }; declare class MGLMultiPoint extends MGLShape { static alloc(): MGLMultiPoint; // inherited from NSObject static new(): MGLMultiPoint; // inherited from NSObject readonly coordinates: interop.Pointer | interop.Reference; readonly pointCount: number; appendCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): void; getCoordinatesRange(coords: interop.Pointer | interop.Reference, range: NSRange): void; insertCoordinatesCountAtIndex(coords: interop.Pointer | interop.Reference, count: number, index: number): void; removeCoordinatesInRange(range: NSRange): void; replaceCoordinatesInRangeWithCoordinates(range: NSRange, coords: interop.Pointer | interop.Reference): void; replaceCoordinatesInRangeWithCoordinatesCount(range: NSRange, coords: interop.Pointer | interop.Reference, count: number): void; setCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): void; } declare class MGLMultiPolygon extends MGLShape implements MGLOverlay { static alloc(): MGLMultiPolygon; // inherited from NSObject static multiPolygonWithPolygons(polygons: NSArray): MGLMultiPolygon; static new(): MGLMultiPolygon; // inherited from NSObject readonly polygons: NSArray; readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLMultiPolygonFeature extends MGLMultiPolygon implements MGLFeature { static alloc(): MGLMultiPolygonFeature; // inherited from NSObject static multiPolygonWithPolygons(polygons: NSArray): MGLMultiPolygonFeature; // inherited from MGLMultiPolygon static new(): MGLMultiPolygonFeature; // inherited from NSObject attributes: NSDictionary; // inherited from MGLFeature readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol identifier: any; // inherited from MGLFeature readonly isProxy: boolean; // inherited from NSObjectProtocol readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol attributeForKey(key: string): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; geoJSONDictionary(): NSDictionary; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLMultiPolyline extends MGLShape implements MGLOverlay { static alloc(): MGLMultiPolyline; // inherited from NSObject static multiPolylineWithPolylines(polylines: NSArray): MGLMultiPolyline; static new(): MGLMultiPolyline; // inherited from NSObject readonly polylines: NSArray; readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLMultiPolylineFeature extends MGLMultiPolyline implements MGLFeature { static alloc(): MGLMultiPolylineFeature; // inherited from NSObject static multiPolylineWithPolylines(polylines: NSArray): MGLMultiPolylineFeature; // inherited from MGLMultiPolyline static new(): MGLMultiPolylineFeature; // inherited from NSObject attributes: NSDictionary; // inherited from MGLFeature readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol identifier: any; // inherited from MGLFeature readonly isProxy: boolean; // inherited from NSObjectProtocol readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol attributeForKey(key: string): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; geoJSONDictionary(): NSDictionary; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLOfflinePack extends NSObject { static alloc(): MGLOfflinePack; // inherited from NSObject static new(): MGLOfflinePack; // inherited from NSObject readonly context: NSData; readonly progress: MGLOfflinePackProgress; readonly region: MGLOfflineRegion; readonly state: MGLOfflinePackState; requestProgress(): void; resume(): void; suspend(): void; } declare var MGLOfflinePackErrorNotification: string; declare var MGLOfflinePackErrorUserInfoKey: string; declare var MGLOfflinePackMaximumCountUserInfoKey: string; declare var MGLOfflinePackMaximumMapboxTilesReachedNotification: string; interface MGLOfflinePackProgress { countOfResourcesCompleted: number; countOfBytesCompleted: number; countOfTilesCompleted: number; countOfTileBytesCompleted: number; countOfResourcesExpected: number; maximumResourcesExpected: number; } declare var MGLOfflinePackProgress: interop.StructType; declare var MGLOfflinePackProgressChangedNotification: string; declare var MGLOfflinePackProgressUserInfoKey: string; declare const enum MGLOfflinePackState { Unknown = 0, Inactive = 1, Active = 2, Complete = 3, Invalid = 4 } declare var MGLOfflinePackStateUserInfoKey: string; declare var MGLOfflinePackUserInfoKeyError: string; declare var MGLOfflinePackUserInfoKeyMaximumCount: string; declare var MGLOfflinePackUserInfoKeyProgress: string; declare var MGLOfflinePackUserInfoKeyState: string; interface MGLOfflineRegion extends NSObjectProtocol { } declare var MGLOfflineRegion: { prototype: MGLOfflineRegion; }; declare class MGLOfflineStorage extends NSObject { static alloc(): MGLOfflineStorage; // inherited from NSObject static new(): MGLOfflineStorage; // inherited from NSObject static sharedOfflineStorage(): MGLOfflineStorage; readonly countOfBytesCompleted: number; delegate: MGLOfflineStorageDelegate; readonly packs: NSArray; addPackForRegionWithContextCompletionHandler(region: MGLOfflineRegion, context: NSData, completion: (p1: MGLOfflinePack, p2: NSError) => void): void; reloadPacks(): void; removePackWithCompletionHandler(pack: MGLOfflinePack, completion: (p1: NSError) => void): void; setMaximumAllowedMapboxTiles(maximumCount: number): void; } interface MGLOfflineStorageDelegate extends NSObjectProtocol { offlineStorageURLForResourceOfKindWithURL(storage: MGLOfflineStorage, kind: MGLResourceKind, url: NSURL): NSURL; } declare var MGLOfflineStorageDelegate: { prototype: MGLOfflineStorageDelegate; }; declare class MGLOpenGLStyleLayer extends MGLStyleLayer { static alloc(): MGLOpenGLStyleLayer; // inherited from NSObject static new(): MGLOpenGLStyleLayer; // inherited from NSObject readonly mapView: MGLMapView; constructor(o: { identifier: string; }); didMoveToMapView(mapView: MGLMapView): void; drawInMapViewWithContext(mapView: MGLMapView, context: MGLStyleLayerDrawingContext): void; initWithIdentifier(identifier: string): this; setNeedsDisplay(): void; willMoveFromMapView(mapView: MGLMapView): void; } interface MGLOverlay extends MGLAnnotation { overlayBounds: MGLCoordinateBounds; intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean; } declare var MGLOverlay: { prototype: MGLOverlay; }; declare class MGLPointAnnotation extends MGLShape { static alloc(): MGLPointAnnotation; // inherited from NSObject static new(): MGLPointAnnotation; // inherited from NSObject coordinate: CLLocationCoordinate2D; } declare class MGLPointCollection extends MGLShape implements MGLOverlay { static alloc(): MGLPointCollection; // inherited from NSObject static new(): MGLPointCollection; // inherited from NSObject static pointCollectionWithCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): MGLPointCollection; readonly coordinates: interop.Pointer | interop.Reference; readonly pointCount: number; readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; getCoordinatesRange(coords: interop.Pointer | interop.Reference, range: NSRange): void; intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLPointCollectionFeature extends MGLPointCollection implements MGLFeature { static alloc(): MGLPointCollectionFeature; // inherited from NSObject static new(): MGLPointCollectionFeature; // inherited from NSObject static pointCollectionWithCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): MGLPointCollectionFeature; // inherited from MGLPointCollection attributes: NSDictionary; // inherited from MGLFeature readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol identifier: any; // inherited from MGLFeature readonly isProxy: boolean; // inherited from NSObjectProtocol readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol attributeForKey(key: string): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; geoJSONDictionary(): NSDictionary; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLPointFeature extends MGLPointAnnotation implements MGLFeature { static alloc(): MGLPointFeature; // inherited from NSObject static new(): MGLPointFeature; // inherited from NSObject attributes: NSDictionary; // inherited from MGLFeature readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol identifier: any; // inherited from MGLFeature readonly isProxy: boolean; // inherited from NSObjectProtocol readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol attributeForKey(key: string): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; geoJSONDictionary(): NSDictionary; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLPolygon extends MGLMultiPoint implements MGLOverlay { static alloc(): MGLPolygon; // inherited from NSObject static new(): MGLPolygon; // inherited from NSObject static polygonWithCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): MGLPolygon; static polygonWithCoordinatesCountInteriorPolygons(coords: interop.Pointer | interop.Reference, count: number, interiorPolygons: NSArray): MGLPolygon; readonly interiorPolygons: NSArray; readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLPolygonFeature extends MGLPolygon implements MGLFeature { static alloc(): MGLPolygonFeature; // inherited from NSObject static new(): MGLPolygonFeature; // inherited from NSObject static polygonWithCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): MGLPolygonFeature; // inherited from MGLPolygon static polygonWithCoordinatesCountInteriorPolygons(coords: interop.Pointer | interop.Reference, count: number, interiorPolygons: NSArray): MGLPolygonFeature; // inherited from MGLPolygon attributes: NSDictionary; // inherited from MGLFeature readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol identifier: any; // inherited from MGLFeature readonly isProxy: boolean; // inherited from NSObjectProtocol readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol attributeForKey(key: string): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; geoJSONDictionary(): NSDictionary; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLPolyline extends MGLMultiPoint implements MGLOverlay { static alloc(): MGLPolyline; // inherited from NSObject static new(): MGLPolyline; // inherited from NSObject static polylineWithCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): MGLPolyline; readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly overlayBounds: MGLCoordinateBounds; // inherited from MGLOverlay readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; intersectsOverlayBounds(overlayBounds: MGLCoordinateBounds): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLPolylineFeature extends MGLPolyline implements MGLFeature { static alloc(): MGLPolylineFeature; // inherited from NSObject static new(): MGLPolylineFeature; // inherited from NSObject static polylineWithCoordinatesCount(coords: interop.Pointer | interop.Reference, count: number): MGLPolylineFeature; // inherited from MGLPolyline attributes: NSDictionary; // inherited from MGLFeature readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol identifier: any; // inherited from MGLFeature readonly isProxy: boolean; // inherited from NSObjectProtocol readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol attributeForKey(key: string): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; geoJSONDictionary(): NSDictionary; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLRasterSource extends MGLTileSource { static alloc(): MGLRasterSource; // inherited from NSObject static new(): MGLRasterSource; // inherited from NSObject constructor(o: { identifier: string; configurationURL: NSURL; }); constructor(o: { identifier: string; configurationURL: NSURL; tileSize: number; }); constructor(o: { identifier: string; tileURLTemplates: NSArray; options: NSDictionary; }); initWithIdentifierConfigurationURL(identifier: string, configurationURL: NSURL): this; initWithIdentifierConfigurationURLTileSize(identifier: string, configurationURL: NSURL, tileSize: number): this; initWithIdentifierTileURLTemplatesOptions(identifier: string, tileURLTemplates: NSArray, options: NSDictionary): this; } declare class MGLRasterStyleLayer extends MGLForegroundStyleLayer { static alloc(): MGLRasterStyleLayer; // inherited from NSObject static new(): MGLRasterStyleLayer; // inherited from NSObject maximumRasterBrightness: MGLStyleValue; maximumRasterBrightnessTransition: MGLTransition; minimumRasterBrightness: MGLStyleValue; minimumRasterBrightnessTransition: MGLTransition; rasterContrast: MGLStyleValue; rasterContrastTransition: MGLTransition; rasterFadeDuration: MGLStyleValue; rasterFadeDurationTransition: MGLTransition; rasterHueRotation: MGLStyleValue; rasterHueRotationTransition: MGLTransition; rasterOpacity: MGLStyleValue; rasterOpacityTransition: MGLTransition; rasterSaturation: MGLStyleValue; rasterSaturationTransition: MGLTransition; constructor(o: { identifier: string; source: MGLSource; }); initWithIdentifierSource(identifier: string, source: MGLSource): this; } declare const enum MGLResourceKind { Unknown = 0, Style = 1, Source = 2, Tile = 3, Glyphs = 4, SpriteImage = 5, SpriteJSON = 6 } declare class MGLShape extends NSObject implements MGLAnnotation, NSSecureCoding { static alloc(): MGLShape; // inherited from NSObject static new(): MGLShape; // inherited from NSObject static shapeWithDataEncodingError(data: NSData, encoding: number): MGLShape; subtitle: string; title: string; readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; geoJSONDataUsingEncoding(encoding: number): NSData; initWithCoder(aDecoder: NSCoder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLShapeCollection extends MGLShape { static alloc(): MGLShapeCollection; // inherited from NSObject static new(): MGLShapeCollection; // inherited from NSObject static shapeCollectionWithShapes(shapes: NSArray): MGLShapeCollection; readonly shapes: NSArray; } declare class MGLShapeCollectionFeature extends MGLShapeCollection implements MGLFeature { static alloc(): MGLShapeCollectionFeature; // inherited from NSObject static new(): MGLShapeCollectionFeature; // inherited from NSObject static shapeCollectionWithShapes(shapes: NSArray): MGLShapeCollectionFeature; // inherited from MGLShapeCollection attributes: NSDictionary; // inherited from MGLFeature readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol identifier: any; // inherited from MGLFeature readonly isProxy: boolean; // inherited from NSObjectProtocol readonly subtitle: string; // inherited from MGLAnnotation readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from MGLAnnotation readonly // inherited from NSObjectProtocol attributeForKey(key: string): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; geoJSONDictionary(): NSDictionary; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLShapeSource extends MGLSource { static alloc(): MGLShapeSource; // inherited from NSObject static new(): MGLShapeSource; // inherited from NSObject URL: NSURL; shape: MGLShape; constructor(o: { identifier: string; features: NSArray; options: NSDictionary; }); constructor(o: { identifier: string; shape: MGLShape; options: NSDictionary; }); constructor(o: { identifier: string; shapes: NSArray; options: NSDictionary; }); constructor(o: { identifier: string; URL: NSURL; options: NSDictionary; }); featuresMatchingPredicate(predicate: NSPredicate): NSArray; initWithIdentifierFeaturesOptions(identifier: string, features: NSArray, options: NSDictionary): this; initWithIdentifierShapeOptions(identifier: string, shape: MGLShape, options: NSDictionary): this; initWithIdentifierShapesOptions(identifier: string, shapes: NSArray, options: NSDictionary): this; initWithIdentifierURLOptions(identifier: string, url: NSURL, options: NSDictionary): this; } declare var MGLShapeSourceOptionBuffer: string; declare var MGLShapeSourceOptionClusterRadius: string; declare var MGLShapeSourceOptionClustered: string; declare var MGLShapeSourceOptionMaximumZoomLevel: string; declare var MGLShapeSourceOptionMaximumZoomLevelForClustering: string; declare var MGLShapeSourceOptionSimplificationTolerance: string; declare class MGLSource extends NSObject { static alloc(): MGLSource; // inherited from NSObject static new(): MGLSource; // inherited from NSObject identifier: string; constructor(o: { identifier: string; }); initWithIdentifier(identifier: string): this; } declare class MGLSourceStyleFunction extends MGLStyleFunction { static alloc(): MGLSourceStyleFunction; // inherited from NSObject static functionWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLSourceStyleFunction; // inherited from MGLStyleFunction static functionWithInterpolationModeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, stops: NSDictionary>, attributeName: string, options: NSDictionary): MGLSourceStyleFunction; static functionWithStops(stops: NSDictionary>): MGLSourceStyleFunction; // inherited from MGLStyleFunction static new(): MGLSourceStyleFunction; // inherited from NSObject static valueWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLSourceStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCameraStopsOptions(interpolationMode: MGLInterpolationMode, cameraStops: NSDictionary>, options: NSDictionary): MGLSourceStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCompositeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, compositeStops: NSDictionary>>, attributeName: string, options: NSDictionary): MGLSourceStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeSourceStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, sourceStops: NSDictionary>, attributeName: string, options: NSDictionary): MGLSourceStyleFunction; // inherited from MGLStyleValue static valueWithRawValue(rawValue: T): MGLSourceStyleFunction; // inherited from MGLStyleValue static valueWithStops(stops: NSDictionary>): MGLSourceStyleFunction; // inherited from MGLStyleValue attributeName: string; defaultValue: MGLStyleValue; } interface MGLSphericalPosition { radial: number; azimuthal: number; polar: number; } declare var MGLSphericalPosition: interop.StructType; declare class MGLStyle extends NSObject { static alloc(): MGLStyle; // inherited from NSObject static darkStyleURL(): NSURL; static darkStyleURLWithVersion(version: number): NSURL; static emeraldStyleURL(): NSURL; static hybridStyleURL(): NSURL; static lightStyleURL(): NSURL; static lightStyleURLWithVersion(version: number): NSURL; static new(): MGLStyle; // inherited from NSObject static outdoorsStyleURL(): NSURL; static outdoorsStyleURLWithVersion(version: number): NSURL; static satelliteStreetsStyleURL(): NSURL; static satelliteStreetsStyleURLWithVersion(version: number): NSURL; static satelliteStyleURL(): NSURL; static satelliteStyleURLWithVersion(version: number): NSURL; static streetsStyleURL(): NSURL; static streetsStyleURLWithVersion(version: number): NSURL; static trafficDayStyleURL(): NSURL; static trafficDayStyleURLWithVersion(version: number): NSURL; static trafficNightStyleURL(): NSURL; static trafficNightStyleURLWithVersion(version: number): NSURL; layers: NSArray; light: MGLLight; readonly name: string; sources: NSSet; styleClasses: NSArray; transition: MGLTransition; addLayer(layer: MGLStyleLayer): void; addSource(source: MGLSource): void; addStyleClass(styleClass: string): void; hasStyleClass(styleClass: string): boolean; imageForName(name: string): UIImage; insertLayerAboveLayer(layer: MGLStyleLayer, sibling: MGLStyleLayer): void; insertLayerAtIndex(layer: MGLStyleLayer, index: number): void; insertLayerBelowLayer(layer: MGLStyleLayer, sibling: MGLStyleLayer): void; layerWithIdentifier(identifier: string): MGLStyleLayer; removeImageForName(name: string): void; removeLayer(layer: MGLStyleLayer): void; removeSource(source: MGLSource): void; removeStyleClass(styleClass: string): void; setImageForName(image: UIImage, name: string): void; sourceWithIdentifier(identifier: string): MGLSource; } declare var MGLStyleDefaultVersion: number; declare class MGLStyleFunction extends MGLStyleValue { static alloc(): MGLStyleFunction; // inherited from NSObject static functionWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLStyleFunction; static functionWithStops(stops: NSDictionary>): MGLStyleFunction; static new(): MGLStyleFunction; // inherited from NSObject static valueWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCameraStopsOptions(interpolationMode: MGLInterpolationMode, cameraStops: NSDictionary>, options: NSDictionary): MGLStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeCompositeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, compositeStops: NSDictionary>>, attributeName: string, options: NSDictionary): MGLStyleFunction; // inherited from MGLStyleValue static valueWithInterpolationModeSourceStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, sourceStops: NSDictionary>, attributeName: string, options: NSDictionary): MGLStyleFunction; // inherited from MGLStyleValue static valueWithRawValue(rawValue: T): MGLStyleFunction; // inherited from MGLStyleValue static valueWithStops(stops: NSDictionary>): MGLStyleFunction; // inherited from MGLStyleValue interpolationBase: number; interpolationMode: MGLInterpolationMode; stops: NSDictionary; constructor(o: { interpolationBase: number; stops: NSDictionary>; }); initWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): this; } declare var MGLStyleFunctionOptionDefaultValue: string; declare var MGLStyleFunctionOptionInterpolationBase: string; declare class MGLStyleLayer extends NSObject { static alloc(): MGLStyleLayer; // inherited from NSObject static new(): MGLStyleLayer; // inherited from NSObject readonly identifier: string; maximumZoomLevel: number; minimumZoomLevel: number; visible: boolean; } interface MGLStyleLayerDrawingContext { size: CGSize; centerCoordinate: CLLocationCoordinate2D; zoomLevel: number; direction: number; pitch: number; fieldOfView: number; } declare var MGLStyleLayerDrawingContext: interop.StructType; declare class MGLStyleValue extends NSObject { static alloc(): MGLStyleValue; // inherited from NSObject static new(): MGLStyleValue; // inherited from NSObject static valueWithInterpolationBaseStops(interpolationBase: number, stops: NSDictionary>): MGLStyleValue; static valueWithInterpolationModeCameraStopsOptions(interpolationMode: MGLInterpolationMode, cameraStops: NSDictionary>, options: NSDictionary): MGLStyleValue; static valueWithInterpolationModeCompositeStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, compositeStops: NSDictionary>>, attributeName: string, options: NSDictionary): MGLStyleValue; static valueWithInterpolationModeSourceStopsAttributeNameOptions(interpolationMode: MGLInterpolationMode, sourceStops: NSDictionary>, attributeName: string, options: NSDictionary): MGLStyleValue; static valueWithRawValue(rawValue: T): MGLStyleValue; static valueWithStops(stops: NSDictionary>): MGLStyleValue; } declare const enum MGLSymbolPlacement { Point = 0, Line = 1 } declare class MGLSymbolStyleLayer extends MGLVectorStyleLayer { static alloc(): MGLSymbolStyleLayer; // inherited from NSObject static new(): MGLSymbolStyleLayer; // inherited from NSObject iconAllowsOverlap: MGLStyleValue; iconColor: MGLStyleValue; iconColorTransition: MGLTransition; iconHaloBlur: MGLStyleValue; iconHaloBlurTransition: MGLTransition; iconHaloColor: MGLStyleValue; iconHaloColorTransition: MGLTransition; iconHaloWidth: MGLStyleValue; iconHaloWidthTransition: MGLTransition; iconIgnoresPlacement: MGLStyleValue; iconImageName: MGLStyleValue; iconOffset: MGLStyleValue; iconOpacity: MGLStyleValue; iconOpacityTransition: MGLTransition; iconOptional: MGLStyleValue; iconPadding: MGLStyleValue; iconRotation: MGLStyleValue; iconRotationAlignment: MGLStyleValue; iconScale: MGLStyleValue; iconTextFit: MGLStyleValue; iconTextFitPadding: MGLStyleValue; iconTranslation: MGLStyleValue; iconTranslationAnchor: MGLStyleValue; iconTranslationTransition: MGLTransition; keepsIconUpright: MGLStyleValue; keepsTextUpright: MGLStyleValue; maximumTextAngle: MGLStyleValue; maximumTextWidth: MGLStyleValue; symbolAvoidsEdges: MGLStyleValue; symbolPlacement: MGLStyleValue; symbolSpacing: MGLStyleValue; text: MGLStyleValue; textAllowsOverlap: MGLStyleValue; textAnchor: MGLStyleValue; textColor: MGLStyleValue; textColorTransition: MGLTransition; textFontNames: MGLStyleValue>; textFontSize: MGLStyleValue; textHaloBlur: MGLStyleValue; textHaloBlurTransition: MGLTransition; textHaloColor: MGLStyleValue; textHaloColorTransition: MGLTransition; textHaloWidth: MGLStyleValue; textHaloWidthTransition: MGLTransition; textIgnoresPlacement: MGLStyleValue; textJustification: MGLStyleValue; textLetterSpacing: MGLStyleValue; textLineHeight: MGLStyleValue; textOffset: MGLStyleValue; textOpacity: MGLStyleValue; textOpacityTransition: MGLTransition; textOptional: MGLStyleValue; textPadding: MGLStyleValue; textPitchAlignment: MGLStyleValue; textRotation: MGLStyleValue; textRotationAlignment: MGLStyleValue; textTransform: MGLStyleValue; textTranslation: MGLStyleValue; textTranslationAnchor: MGLStyleValue; textTranslationTransition: MGLTransition; constructor(o: { identifier: string; source: MGLSource; }); initWithIdentifierSource(identifier: string, source: MGLSource): this; } declare const enum MGLTextAnchor { Center = 0, Left = 1, Right = 2, Top = 3, Bottom = 4, TopLeft = 5, TopRight = 6, BottomLeft = 7, BottomRight = 8 } declare const enum MGLTextJustification { Left = 0, Center = 1, Right = 2 } declare const enum MGLTextPitchAlignment { Map = 0, Viewport = 1, Auto = 2 } declare const enum MGLTextRotationAlignment { Map = 0, Viewport = 1, Auto = 2 } declare const enum MGLTextTransform { None = 0, Uppercase = 1, Lowercase = 2 } declare const enum MGLTextTranslationAnchor { Map = 0, Viewport = 1 } declare const enum MGLTileCoordinateSystem { XYZ = 0, TMS = 1 } declare class MGLTilePyramidOfflineRegion extends NSObject implements MGLOfflineRegion, NSCopying, NSSecureCoding { static alloc(): MGLTilePyramidOfflineRegion; // inherited from NSObject static new(): MGLTilePyramidOfflineRegion; // inherited from NSObject readonly bounds: MGLCoordinateBounds; readonly maximumZoomLevel: number; readonly minimumZoomLevel: number; readonly styleURL: NSURL; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { styleURL: NSURL; bounds: MGLCoordinateBounds; fromZoomLevel: number; toZoomLevel: number; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithStyleURLBoundsFromZoomLevelToZoomLevel(styleURL: NSURL, bounds: MGLCoordinateBounds, minimumZoomLevel: number, maximumZoomLevel: number): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLTileSource extends MGLSource { static alloc(): MGLTileSource; // inherited from NSObject static new(): MGLTileSource; // inherited from NSObject readonly attributionInfos: NSArray; readonly configurationURL: NSURL; } declare var MGLTileSourceOptionAttributionHTMLString: string; declare var MGLTileSourceOptionAttributionInfos: string; declare var MGLTileSourceOptionMaximumZoomLevel: string; declare var MGLTileSourceOptionMinimumZoomLevel: string; declare var MGLTileSourceOptionTileCoordinateSystem: string; declare var MGLTileSourceOptionTileSize: string; interface MGLTransition { duration: number; delay: number; } declare var MGLTransition: interop.StructType; declare class MGLUserLocation extends NSObject implements MGLAnnotation, NSSecureCoding { static alloc(): MGLUserLocation; // inherited from NSObject static new(): MGLUserLocation; // inherited from NSObject readonly heading: CLHeading; readonly location: CLLocation; subtitle: string; title: string; readonly updating: boolean; readonly coordinate: CLLocationCoordinate2D; // inherited from MGLAnnotation readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MGLUserLocationAnnotationView extends MGLAnnotationView { static alloc(): MGLUserLocationAnnotationView; // inherited from NSObject static appearance(): MGLUserLocationAnnotationView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): MGLUserLocationAnnotationView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MGLUserLocationAnnotationView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): MGLUserLocationAnnotationView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MGLUserLocationAnnotationView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): MGLUserLocationAnnotationView; // inherited from UIAppearance static new(): MGLUserLocationAnnotationView; // inherited from NSObject readonly hitTestLayer: CALayer; readonly mapView: MGLMapView; readonly userLocation: MGLUserLocation; update(): void; } declare const enum MGLUserTrackingMode { None = 0, Follow = 1, FollowWithHeading = 2, FollowWithCourse = 3 } declare class MGLVectorSource extends MGLTileSource { static alloc(): MGLVectorSource; // inherited from NSObject static new(): MGLVectorSource; // inherited from NSObject constructor(o: { identifier: string; configurationURL: NSURL; }); constructor(o: { identifier: string; tileURLTemplates: NSArray; options: NSDictionary; }); featuresInSourceLayersWithIdentifiersPredicate(sourceLayerIdentifiers: NSSet, predicate: NSPredicate): NSArray; initWithIdentifierConfigurationURL(identifier: string, configurationURL: NSURL): this; initWithIdentifierTileURLTemplatesOptions(identifier: string, tileURLTemplates: NSArray, options: NSDictionary): this; } declare class MGLVectorStyleLayer extends MGLForegroundStyleLayer { static alloc(): MGLVectorStyleLayer; // inherited from NSObject static new(): MGLVectorStyleLayer; // inherited from NSObject predicate: NSPredicate; sourceLayerIdentifier: string; } declare var MapboxVersionNumber: number; declare var MapboxVersionString: interop.Reference;