1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9
10import {
11  EmitterSubscription,
12  EventEmitter,
13  EventSubscriptionVendor,
14} from '../vendor/emitter/EventEmitter';
15
16/**
17 * Deprecated - subclass NativeEventEmitter to create granular event modules instead of
18 * adding all event listeners directly to RCTDeviceEventEmitter.
19 */
20interface DeviceEventEmitterStatic extends EventEmitter {
21  sharedSubscriber: EventSubscriptionVendor;
22  new (): DeviceEventEmitterStatic;
23  addListener(
24    type: string,
25    listener: (data: any) => void,
26    context?: any,
27  ): EmitterSubscription;
28}
29
30export const DeviceEventEmitter: DeviceEventEmitterStatic;
31