/** * Native → JS event channel for background task fires. The native side * (BGTaskScheduler on iOS, WorkManager on Android) publishes a * BackgroundFireEvent when the OS wakes a task; JS subscribes via this shim * and routes to the registered handler in `background.ts`. * * Wire shape: * { taskName: string, runId: string } * * `runId` is a native-generated UUID per fire. JS uses it when calling * `Background.completeTask(runId, success)` so the native side can pair the * completion with the right OS task instance (a periodic task can fire * concurrently with itself if the previous run is still pending). */ export interface BackgroundFireEvent { taskName: string; runId: string; } export declare function addBackgroundFireListener(cb: (event: BackgroundFireEvent) => void): () => void; export declare const __FIRE_CHANNEL_FOR_TESTS = "__sigxBackgroundFire"; //# sourceMappingURL=events.d.ts.map