// Generated by uniffi-bindgen-react-native
#import "ReactNativeFedimintClient.h"

namespace uniffi_generated {
    using namespace facebook::react;
    /**
    * ObjC++ class for module 'NativeReactNativeFedimintClient'
    */
    class JSI_EXPORT NativeReactNativeFedimintClientSpecJSI : public ObjCTurboModule {
    public:
        NativeReactNativeFedimintClientSpecJSI(const ObjCTurboModule::InitParams &params);
        std::shared_ptr<CallInvoker> callInvoker;
    };

    static facebook::jsi::Value __hostFunction_ReactNativeFedimintClient_installRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
        auto& tm = static_cast<NativeReactNativeFedimintClientSpecJSI&>(turboModule);
        auto jsInvoker = tm.callInvoker;
        uint8_t result = mrimmortal09_reactnativefedimintclient::installRustCrate(rt, jsInvoker);
        return facebook::jsi::Value(rt, result);
    }
    static facebook::jsi::Value __hostFunction_ReactNativeFedimintClient_cleanupRustCrate(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
        uint8_t result = mrimmortal09_reactnativefedimintclient::cleanupRustCrate(rt);
        return facebook::jsi::Value(rt, result);
    }

    NativeReactNativeFedimintClientSpecJSI::NativeReactNativeFedimintClientSpecJSI(const ObjCTurboModule::InitParams &params)
        : ObjCTurboModule(params), callInvoker(params.jsInvoker) {
            this->methodMap_["installRustCrate"] = MethodMetadata {1, __hostFunction_ReactNativeFedimintClient_installRustCrate};
            this->methodMap_["cleanupRustCrate"] = MethodMetadata {1, __hostFunction_ReactNativeFedimintClient_cleanupRustCrate};
    }
} // namespace uniffi_generated

@implementation ReactNativeFedimintClient
RCT_EXPORT_MODULE()

// Don't compile this code when we build for the old architecture.
#ifdef RCT_NEW_ARCH_ENABLED

// Automated testing checks mrimmortal09_reactnativefedimintclient
// by comparing the whole line here.
/*
- (NSNumber *)multiply:(double)a b:(double)b {
    NSNumber *result = @(mrimmortal09_reactnativefedimintclient::multiply(a, b));
}
*/

- (NSNumber *)installRustCrate {
    @throw [NSException exceptionWithName:@"UnreachableException"
                        reason:@"This method should never be called."
                        userInfo:nil];
}

- (NSNumber *)cleanupRustCrate {
    @throw [NSException exceptionWithName:@"UnreachableException"
                        reason:@"This method should never be called."
                        userInfo:nil];
}

- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
    (const facebook::react::ObjCTurboModule::InitParams &)params
{
    return std::make_shared<uniffi_generated::NativeReactNativeFedimintClientSpecJSI>(params);
}
#endif

@end