UNPKG

react-css-transition

Version:
25 lines (24 loc) 837 B
/// <reference types="react" /> import { EventHandler, TransitionEvent } from "react"; export declare type WithTransitionObserverProps = { onTransitionStart: EventHandler<TransitionEvent<any>>; }; export declare const withTransitionObserver: { staticCallback?: (componentClass: React.ComponentClass<any>, target: string | React.ComponentClass<any> | React.StatelessComponent<any>) => void; instanceCallbacks?: { kind: any; callback: any; }[] | (() => { kind: any; callback: any; }[]); } | { staticCallback?: (componentClass: React.ComponentClass<any>, target: string | React.ComponentClass<any> | React.StatelessComponent<any>) => void; instanceCallbacks?: { kind: any; callback: any; }[] | (() => { kind: any; callback: any; }[]); }[];