#import #if TARGET_OS_IPHONE #import #else #import #endif #import "NSExpression+MLNAdditions.h" #include NS_ASSUME_NONNULL_BEGIN @interface NSObject (MLNExpressionAdditions) - (nullable NSNumber *)mgl_number; - (nullable NSNumber *)mgl_numberWithFallbackValues:(id)fallbackValue, ... NS_REQUIRES_NIL_TERMINATION; @end @interface NSExpression (MLNPrivateAdditions) @property (nonatomic, readonly) mbgl::Value mgl_constantMBGLValue; @property (nonatomic, readonly) std::vector mgl_aggregateMBGLValue; @property (nonatomic, readonly) mbgl::FeatureType mgl_featureType; @property (nonatomic, readonly) std::vector mgl_aggregateFeatureType; @property (nonatomic, readonly) mbgl::FeatureIdentifier mgl_featureIdentifier; @property (nonatomic, readonly) std::vector mgl_aggregateFeatureIdentifier; @end @interface NSNull (MLNExpressionAdditions) @property (nonatomic, readonly) id mgl_jsonExpressionObject; @end @interface NSString (MLNExpressionAdditions) @property (nonatomic, readonly) id mgl_jsonExpressionObject; @end @interface NSNumber (MLNExpressionAdditions) - (id)mgl_interpolateWithCurveType:(NSString *)curveType parameters:(NSArray *)parameters stops:(NSDictionary *)stops; - (id)mgl_stepWithMinimum:(id)minimum stops:(NSDictionary *)stops; @property (nonatomic, readonly) id mgl_jsonExpressionObject; @end @interface NSArray (MLNExpressionAdditions) @property (nonatomic, readonly) id mgl_jsonExpressionObject; @end @interface NSDictionary (MLNExpressionAdditions) @property (nonatomic, readonly) id mgl_jsonExpressionObject; - (id)mgl_has:(id)element; @end @interface MLNColor (MLNExpressionAdditions) @property (nonatomic, readonly) id mgl_jsonExpressionObject; @end @interface NSExpression (MLNExpressionAdditions) - (NSExpression *)mgl_expressionWithContext:(NSDictionary *)context; - (id)mgl_has:(id)element; @end FOUNDATION_EXTERN NSArray *MLNSubexpressionsWithJSONObjects(NSArray *objects); NS_ASSUME_NONNULL_END