#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>

@interface RCT_EXTERN_MODULE(BackgroundModule, RCTEventEmitter)

RCT_EXTERN_METHOD(startBackgroundService:(NSString *)taskId
                  title:(NSString *)title
                  description:(NSString *)description
                  intervalMs:(NSNumber *)intervalMs
                  resolver:(RCTPromiseResolveBlock)resolver
                  rejecter:(RCTPromiseRejectBlock)rejecter)

RCT_EXTERN_METHOD(stopBackgroundService:(NSString *)taskId
                  resolver:(RCTPromiseResolveBlock)resolver
                  rejecter:(RCTPromiseRejectBlock)rejecter)

RCT_EXTERN_METHOD(isBackgroundServiceRunning:(NSString *)taskId
                  resolver:(RCTPromiseResolveBlock)resolver
                  rejecter:(RCTPromiseRejectBlock)rejecter)

@end
