import React, { CSSProperties, PropsWithChildren } from 'react'; export interface TimelineProps { /** * 时间轴方向,horizontal 布局 mode、placement 属性无效 * @default 'vertical' */ layout?: 'vertical' | 'horizontal'; /** * 时间轴和内容的相对位置 * @default 'right' */ mode?: 'left' | 'right'; /** * label 的位置,mode 为 left 该属性无效 * @default 'bottom' */ placement?: 'bottom' | 'top'; className?: string; style?: CSSProperties; } export default function Timeline({ children, layout, mode, placement, className, style }: PropsWithChildren): React.JSX.Element;