UNPKG

615 BTypeScriptView Raw
1import * as React from 'react';
2export declare const reflow: (node: Element) => number;
3interface ComponentProps {
4 easing: string | {
5 enter?: string;
6 exit?: string;
7 } | undefined;
8 style: React.CSSProperties | undefined;
9 timeout: number | {
10 enter?: number;
11 exit?: number;
12 };
13}
14interface Options {
15 mode: 'enter' | 'exit';
16}
17interface TransitionProps {
18 duration: string | number;
19 easing: string | undefined;
20 delay: string | undefined;
21}
22export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23export {};