import { NativeModule } from 'react-native'; import NativeEventConsumer from './NativeEventConsumer'; import { EventEmitter } from 'react-native/Libraries/Types/CodegenTypes'; import { PrestoplayEvent } from '../specs/NativePlayerModule'; /** @hidden */ export default class NativeEventDispatcher { private readonly logger; private consumers; private nativeEventEmitter; private nativeEventSubscription; constructor(nativeModule?: NativeModule, // Legacy architecture eventEmitter?: EventEmitter); private onNativeEvent; subscribe(consumer: NativeEventConsumer): void; unsubscribe(consumer: NativeEventConsumer): void; }