#if !defined(RCT_NEW_ARCH_ENABLED)

#ifndef RNScanbotDocumentScannerLegacyView_h
#define RNScanbotDocumentScannerLegacyView_h

#import <React/UIView+React.h>
#import <React/RCTComponent.h>

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface RNScanbotDocumentScannerLegacyView : UIView
@property (nonatomic, copy) RCTDirectEventBlock _Nonnull onDocumentScannerResult;
@property (nonatomic, copy) RCTDirectEventBlock _Nonnull onDetectionResult;
@property (nonatomic, copy) RCTDirectEventBlock _Nonnull onError;

- (void) freezeCamera;
- (void) unfreezeCamera;
- (void) snapDocument;
@end

#endif /* RNScanbotDocumentScannerLegacyView_h */

#endif

