#import <Foundation/Foundation.h>
#import <React/RCTEventEmitter.h>
#import <React/RCTViewManager.h>

@interface RCT_EXTERN_MODULE (AdvancedTextInputMaskDecoratorViewManager, RCTViewManager)
RCT_EXPORT_VIEW_PROPERTY(primaryMaskFormat, NSString)
RCT_EXPORT_VIEW_PROPERTY(customNotations, NSArray)
RCT_EXPORT_VIEW_PROPERTY(allowedKeys, NSString)
RCT_EXPORT_VIEW_PROPERTY(autocomplete, BOOL)
RCT_EXPORT_VIEW_PROPERTY(autoSkip, BOOL)
RCT_EXPORT_VIEW_PROPERTY(isRTL, BOOL)
RCT_EXPORT_VIEW_PROPERTY(autocompleteOnFocus, BOOL)
RCT_EXPORT_VIEW_PROPERTY(allowSuggestions, BOOL)
RCT_EXPORT_VIEW_PROPERTY(defaultValue, NSString)
RCT_EXPORT_VIEW_PROPERTY(value, NSString)
RCT_EXPORT_VIEW_PROPERTY(validationRegex, NSString)
RCT_EXPORT_VIEW_PROPERTY(affinityFormat, NSArray)

RCT_EXPORT_VIEW_PROPERTY(onAdvancedMaskTextChange, RCTDirectEventBlock);

RCT_EXTERN_METHOD(setText
                  : (nonnull NSNumber *)reactTag text
                  : (nonnull NSString *)text autocomplete
                  : (nonnull BOOL)autocomplete);

@end
