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