/** * 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 invariant from 'fbjs/lib/invariant'; import type EventSubscription from './_EventSubscription'; /** * EventSubscriptionVendor stores a set of EventSubscriptions that are * subscribed to a particular event type. */ declare class EventSubscriptionVendor { _subscriptionsForType: { [type: $Keys]: Array>, ... }, constructor(): any, addSubscription>(eventType: K, subscription: EventSubscription): EventSubscription, removeAllSubscriptions>(eventType: ?K): void, removeSubscription>(subscription: EventSubscription): void, getSubscriptionsForType>(eventType: K): ?Array>, } export default EventSubscriptionVendor;