import * as React from 'react'; import { TransitionStatus } from 'react-transition-group/Transition'; export declare const getDuration: (timeout: TimeoutType | number) => TimeoutType; export declare const STATES: { ENTERED: string; ENTERING: string; EXITING: string; EXITED: string; }; export declare const isEntered: (state: string) => boolean; export declare const isEntering: (state: string) => boolean; export declare const isExiting: (state: string) => boolean; export declare const isExited: (state: string) => boolean; export declare type TimeoutType = { enter: number; exit: number; }; export declare type AnimationProps = { timeout: TimeoutType | number; in?: boolean; children: (props: TransitionProps) => React.ReactNode; }; declare type AnimationState = { enter: number; exit: number; }; export declare type TransitionProps = { entering: boolean; entered: boolean; duration: number; exiting: boolean; exited: boolean; state: TransitionStatus; }; export declare class Animation extends React.PureComponent { state: TimeoutType; static defaultProps: { timeout: number; in: boolean; }; static getDerivedStateFromProps(nextProps: AnimationProps): TimeoutType; render(): JSX.Element; } export {};