/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow strict */ 'use strict'; import type EventEmitter from './EventEmitter'; import _EventSubscription from './_EventSubscription'; import type EventSubscriptionVendor from './_EventSubscriptionVendor'; import { type EventSubscription } from './EventSubscription'; /** * EmitterSubscription represents a subscription with listener and context data. */ declare class EmitterSubscription> extends _EventSubscription implements EventSubscription { emitter: EventEmitter, listener: ?(...$ElementType) => mixed, context: ?$FlowFixMe, constructor(emitter: EventEmitter, subscriber: EventSubscriptionVendor, listener: (...$ElementType) => mixed, context: ?$FlowFixMe): any, remove(): void, } export default EmitterSubscription;