import type { CSSProperties, PropsWithChildren } from 'react'; export type Position = 'start' | 'center' | 'end'; export type Width = 'none' | 'auto' | string | number; export type FlexProps = PropsWithChildren<{ style?: CSSProperties; className?: string; /** 等于`inline-flex` */ inline?: boolean; /** 等于`flex-direction` | `'column' | 'row' | 'column-reverse' | 'row-reverse'` */ direction?: 'column' | 'row' | 'column-reverse' | 'row-reverse'; /** 等于`align-items` | `'start' | 'center' | 'end'` */ alignItems?: Position; /** 等于`align-content` | `'start' | 'center' | 'end'` */ alignContent?: Position; /** 等于`justify-content` | `'start' | 'center' | 'end'` */ justifyContent?: Position; /** 等于`flex-wrap: wrap;` | `boolean | 'wrap' | 'wrap-reverse'` */ wrap?: boolean | 'wrap' | 'wrap-reverse'; /** 适应宽度 */ width?: Width; }>; /** * @deprecated 已废弃不维护,请使用antd.Flex */ declare const Component: { ({ children, inline, direction, alignItems, alignContent, justifyContent, wrap, width, style: $style, className, }: FlexProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; export default Component;