import React from 'react'; import { BoxProps } from '@alifd/next/types/box'; type Direction = 'ver' | 'hoz' | 'hoz-reverse'; export interface SpaceProps extends Omit { /** * 子元素是否需要分割线 */ split?: boolean; /** * 子元素摆放方向 */ direction?: Direction; } declare class Space extends React.Component { static displayName: string; static propTypes: any; static defaultProps: any; /** * 在子元素之间插入分隔符 * @param {ReactNode} children Space组件子元素 * @param {string} direction divider 方向 * @returns React.Children */ insertDividerIntoChildren: (children: React.ReactNode, direction: Direction) => any[]; render(): JSX.Element; } export { Space };