import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system'; import type { SxProp } from '../sx'; type ComponentProps = T extends React.ComponentType> ? (Props extends object ? Props : never) : never; type StyledBoxProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps; /** * @deprecated The Box component is deprecated. Replace with a `div` or * appropriate HTML element instead, with CSS modules for styling. * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md */ declare const Box: import("styled-components").StyledComponent<"div", any, StyledBoxProps, never>; /** * @deprecated The Box component is deprecated. Replace with a `div` or * appropriate HTML element instead, with CSS modules for styling. * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md */ export type BoxProps = ComponentProps; export default Box; export { Box }; //# sourceMappingURL=Box.d.ts.map