import type { ReactNode } from 'react'; import type { CSSTransitionProps } from 'react-transition-group/CSSTransition'; export declare type TransitionProps = Omit & { /** * 待执行动画内容 * @en Animation content to be executed */ children?: ReactNode; /** * 待执行动画css类名 * @en Css classname of the animation to be executed */ type: string; /** * 内容是否可见 * @en Whether the content is visible */ in: boolean; /** * 执行动画时间 * @en Execute animation time */ timeout: number | { appear?: number; enter?: number; exit?: number; }; /** * 是否在打开时再加载内容 * @en Whether to reload content when it is opened * @default true */ mountOnEnter?: boolean; /** * 是否在退出时卸载内容 * @en Whether to unmount content on exit * @default true */ unmountOnExit?: boolean; /** * 动画时长变量标识 * @en Animation duration variable identifier * @default type 属性值 */ transitionVarType?: string; }; /** * react-transition-group/CSSTransition 的简单封装。 * @en Simple wrapper for react-transition-group/CSSTransition. * @type 其他 * @type_en Others * @name 动画过渡 * @name_en Transition */ export default function Transition(props: TransitionProps): JSX.Element;