import { ElementType, ReactElement } from 'react'; import { TransitionBaseProps } from './transitionBase'; import { MergeProps } from '../../types'; export type CollapseOwnProps = { /** * 动画实现的方式 * @enum {'sweeping'}: 通过修改width或height实现 * @enum {'scaling'}: 通过transform实现 * 默认为`sweeping` */ transitionType?: 'sweeping' | 'scaling'; /** * 设定折叠后的尺寸 * {@link transitionType}为"`sweeping"`时有效 * 默认为`0` */ collapsedSize?: number | (() => number); }; export type CollapseProps = MergeProps>; export declare const Collapse: (props: CollapseProps) => ReactElement;