/// import { BackgroundProps, BorderProps, ColorProps, FlexboxProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system'; import { BoxSizing, cursorType } from '../../interfaces/global'; import OverrideColor from '../../interfaces/OverrideColor'; import { PolymorphicRef } from '../Box/Box.types'; export interface FlexProps extends FlexboxProps, Omit, Omit, BackgroundProps, Omit, ShadowProps, SpaceProps, PositionProps, TypographyProps, OverrideColor { cursor?: cursorType; rowGap?: string; columnGap?: string; gap?: string; boxSizing?: BoxSizing; as?: C | React.ElementType; } export type PolymorphFlexProps = FlexProps & Omit, keyof FlexProps>; type PolymorphicComponentPropWithRef = PolymorphFlexProps & { ref?: PolymorphicRef; }; export type FlexComponent = (props: PolymorphicComponentPropWithRef) => React.ReactElement | null; export {};