import { TransitionOptions } from './types'; /** * 缓动 */ export declare const easing: { /** * 标准缓动。用得最多的缓动。 */ easeInOut: string; /** * 加速缓动。元素离开屏幕时使用。 */ easeOut: string; /** * 减速缓动。元素进场时使用。 */ easeIn: string; /** * 更快速的缓入缓出。比校准缓动感觉跟快速一些。用于随时可能出现在页面上的元素的动画。 */ sharp: string; }; /** * 持续时间 */ export declare const duration: { shortest: number; shorter: number; short: number; /** * 标准持续时间 */ standard: number; /** * 复杂动画的持续时间 */ complex: number; /** * 进入屏幕的持续时间 */ enteringScreen: number; /** * 离开屏幕的持续时间 */ leavingScreen: number; }; export declare const formatMs: (miliseconds: number) => string; /** * 创建css3变换表达式 * * @param props css3变换属性,可以是1个或者多个 * @param options css3变换配置 */ declare function createTransition(props?: string | string[], options?: TransitionOptions): string; /** * 根据高度获取动画时长 * * @param height 高度 */ declare function getAutoHeightDuration(height?: number | null): number; declare const transitions: { easing: { /** * 标准缓动。用得最多的缓动。 */ easeInOut: string; /** * 加速缓动。元素离开屏幕时使用。 */ easeOut: string; /** * 减速缓动。元素进场时使用。 */ easeIn: string; /** * 更快速的缓入缓出。比校准缓动感觉跟快速一些。用于随时可能出现在页面上的元素的动画。 */ sharp: string; }; duration: { shortest: number; shorter: number; short: number; /** * 标准持续时间 */ standard: number; /** * 复杂动画的持续时间 */ complex: number; /** * 进入屏幕的持续时间 */ enteringScreen: number; /** * 离开屏幕的持续时间 */ leavingScreen: number; }; create: typeof createTransition; getAutoHeightDuration: typeof getAutoHeightDuration; }; export default transitions;