import * as React from 'react'; export interface EventListenerOptions { /** Indicating that events of this type will be dispatched to the registered listener before being dispatched to any EventTarget beneath it in the DOM tree. */ capture?: boolean; /** A function which receives a notification when an event of the specified type occurs. */ listener: EventHandler; /** A ref object with a target node. */ targetRef: TargetRef; /** A case-sensitive string representing the event type to listen for. */ type: T; } export declare type EventHandler = (e: DocumentEventMap[T]) => void; export declare type EventTypes = keyof DocumentEventMap; export declare type TargetRef = React.RefObject;