/** * AppState auto-tracker. Subscribes to RN's `AppState` change events * and emits: * * - APP_PAUSE when the host goes background / inactive. The send * loop is woken right after the emit so any accumulated events * get one more chance to ship before the OS suspends the process. * - APP_RESUME when the host returns to active. * * Repeated transitions into the same logical state are coalesced: a * sequence of `inactive -> background` (iOS multitasking quirks) * emits exactly ONE APP_PAUSE, not two, because the tracker tracks * the last emitted phase and skips no-op transitions. */ import type { KeewanoTracker } from '../types/config'; import type { AppStateTrackerArgs } from './types/AppStateTracker'; declare class AppStateTracker implements KeewanoTracker { readonly name = "AppStateTracker"; private readonly args; constructor(args: AppStateTrackerArgs); /** * Subscribe to RN AppState changes. Returns a no-op detach when * AppState is unavailable (Node test runner, broken shim). */ attach(): () => void; } export type { AppStateTrackerArgs } from './types/AppStateTracker'; export { AppStateTracker };