#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "RGLDocumentReaderResults.h"

NS_SWIFT_NAME(DocumentReaderValue)
@interface RGLDocumentReaderValue : NSObject

@property(nonatomic, assign, readonly) RGLResultType sourceType;
@property(nonatomic, strong, readonly, nonnull) NSString *value;
@property(nonatomic, strong, readonly, nonnull) NSString *originalValue;
@property(nonatomic, assign, readonly) CGRect boundRect;
@property(nonatomic, assign, readonly) RGLFieldVerificationResult validity;
@property(nonatomic, strong, readonly, nonnull) NSDictionary <NSNumber *, NSNumber *> *comparison;
@property(nonatomic, assign, readonly) NSInteger pageIndex;
@property(nonatomic, assign, readonly) NSInteger probability;

- (instancetype _Nonnull)init NS_UNAVAILABLE;
- (instancetype _Nonnull)initWithJSON:(NSDictionary *_Nonnull)json;
+ (instancetype _Nonnull)initWithJSON:(NSDictionary * _Nonnull)json;
- (NSDictionary *_Nonnull)jsonDictionary;

@end
