UNPKG

1.1 kBTypeScriptView Raw
1/// <reference types="react" />
2export declare const STATUS_NONE: "none";
3export declare const STATUS_APPEAR: "appear";
4export declare const STATUS_ENTER: "enter";
5export declare const STATUS_LEAVE: "leave";
6export declare type MotionStatus = typeof STATUS_NONE | typeof STATUS_APPEAR | typeof STATUS_ENTER | typeof STATUS_LEAVE;
7export declare const STEP_NONE: "none";
8export declare const STEP_PREPARE: "prepare";
9export declare const STEP_START: "start";
10export declare const STEP_ACTIVE: "active";
11export declare const STEP_ACTIVATED: "end";
12export declare type StepStatus = typeof STEP_NONE | typeof STEP_PREPARE | typeof STEP_START | typeof STEP_ACTIVE | typeof STEP_ACTIVATED;
13export declare type MotionEvent = (TransitionEvent | AnimationEvent) & {
14 deadline?: boolean;
15};
16export declare type MotionPrepareEventHandler = (element: HTMLElement) => Promise<any> | void;
17export declare type MotionEventHandler = (element: HTMLElement, event: MotionEvent) => React.CSSProperties | void;
18export declare type MotionEndEventHandler = (element: HTMLElement, event: MotionEvent) => boolean | void;