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.  * @flow
    
  8.  */
    
  9. 
    
  10. import type {ReactScopeInstance} from 'shared/ReactTypes';
    
  11. import type {DOMEventName} from '../events/DOMEventNames';
    
  12. 
    
  13. export type ReactDOMEventHandle = (
    
  14.   target: EventTarget | ReactScopeInstance,
    
  15.   callback: (SyntheticEvent<EventTarget>) => void,
    
  16. ) => () => void;
    
  17. 
    
  18. export type ReactDOMEventHandleListener = {
    
  19.   callback: (SyntheticEvent<EventTarget>) => void,
    
  20.   capture: boolean,
    
  21.   type: DOMEventName,
    
  22. };