/*
 * Copyright © Dynamsoft Corporation. All rights reserved.
 *
 */

#import <React/RCTViewManager.h>

@interface RCT_EXTERN_REMAP_MODULE(DynamsoftImageEditorView, RNDynamsoftImageEditorViewManager, RCTViewManager)

RCT_EXTERN_METHOD(setQuads:(nonnull NSNumber *)tag quadArray:(NSArray *)array layerId:(NSInteger)layerId)

RCT_EXTERN_METHOD(setQuads:(nonnull NSNumber *)tag
                  quads:(NSArray *)quads
                  layerId:(NSInteger)layerId
                  resolve:(RCTPromiseResolveBlock)resolve
                  reject:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(getSelectedQuad:(nonnull NSNumber *)tag
                  resolver:(RCTPromiseResolveBlock)resolve
                  rejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(getSelectedQuad:(nonnull NSNumber *)tag
                  resolve:(RCTPromiseResolveBlock)resolve
                  reject:(RCTPromiseRejectBlock)reject)

@end
