1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 */ 7 8 #import <Foundation/Foundation.h> 9 10 #import <ABI47_0_0React/ABI47_0_0RCTBridgeMethod.h> 11 #import <ABI47_0_0React/ABI47_0_0RCTBridgeModule.h> 12 #import <ABI47_0_0React/ABI47_0_0RCTNullability.h> 13 14 @class ABI47_0_0RCTBridge; 15 16 @interface ABI47_0_0RCTMethodArgument : NSObject 17 18 @property (nonatomic, copy, readonly) NSString *type; 19 @property (nonatomic, readonly) ABI47_0_0RCTNullability nullability; 20 @property (nonatomic, readonly) BOOL unused; 21 22 @end 23 24 @interface ABI47_0_0RCTModuleMethod : NSObject <ABI47_0_0RCTBridgeMethod> 25 26 @property (nonatomic, readonly) Class moduleClass; 27 @property (nonatomic, readonly) SEL selector; 28 29 - (instancetype)initWithExportedMethod:(const ABI47_0_0RCTMethodInfo *)exportMethod 30 moduleClass:(Class)moduleClass NS_DESIGNATED_INITIALIZER; 31 32 @end 33 34 ABI47_0_0RCT_EXTERN NSString *ABI47_0_0RCTParseMethodSignature(const char *input, NSArray<ABI47_0_0RCTMethodArgument *> **arguments); 35