import { requireNativeModule, type NativeModule } from 'expo'; import { BackgroundTaskOptions, BackgroundTaskStatus } from './BackgroundTask.types'; type ExpoBackgroundTaskEvents = { onTasksExpired(): void; }; declare class ExpoBackgroundTaskModule extends NativeModule { getStatusAsync(): Promise; registerTaskAsync(name: string, options: BackgroundTaskOptions): Promise; unregisterTaskAsync(name: string): Promise; triggerTaskWorkerForTestingAsync(): Promise; } export default requireNativeModule('ExpoBackgroundTask');