1 | import * as PropTypes from 'prop-types';
|
2 | import { EventListenerOptions, EventTypes } from './types';
|
3 | declare function EventListener<T extends EventTypes>(props: EventListenerOptions<T>): any;
|
4 | declare namespace EventListener {
|
5 | var displayName: string;
|
6 | var propTypes: {
|
7 | capture: PropTypes.Requireable<boolean>;
|
8 | listener: PropTypes.Validator<(...args: any[]) => any>;
|
9 | targetRef: PropTypes.Validator<import("react").RefObject<Node | Window>>;
|
10 | type: PropTypes.Validator<"waiting" | "error" | "abort" | "cancel" | "progress" | "ended" | "change" | "input" | "select" | "fullscreenchange" | "fullscreenerror" | "readystatechange" | "visibilitychange" | "animationcancel" | "animationend" | "animationiteration" | "animationstart" | "auxclick" | "blur" | "canplay" | "canplaythrough" | "click" | "close" | "contextmenu" | "cuechange" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragexit" | "dragleave" | "dragover" | "dragstart" | "drop" | "durationchange" | "emptied" | "focus" | "gotpointercapture" | "invalid" | "keydown" | "keypress" | "keyup" | "load" | "loadeddata" | "loadedmetadata" | "loadend" | "loadstart" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pause" | "play" | "playing" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "ratechange" | "reset" | "resize" | "scroll" | "securitypolicyviolation" | "seeked" | "seeking" | "stalled" | "submit" | "suspend" | "timeupdate" | "toggle" | "touchcancel" | "touchend" | "touchmove" | "touchstart" | "transitioncancel" | "transitionend" | "transitionrun" | "transitionstart" | "volumechange" | "wheel" | "copy" | "cut" | "paste">;
|
11 | } | {
|
12 | capture?: undefined;
|
13 | listener?: undefined;
|
14 | targetRef?: undefined;
|
15 | type?: undefined;
|
16 | };
|
17 | var defaultProps: {
|
18 | capture: boolean;
|
19 | };
|
20 | }
|
21 | export default EventListener;
|