import * as React from 'react'; import type { OverridableComponent, OverrideProps } from '@mui/types'; import type { SxProps, AllSystemCSSProperties, ResponsiveStyleValue, OverwriteCSSProperties, AliasesCSSProperties } from "../styleFunctionSx/index.js"; import type { PropsFor } from "../style/index.js"; import type { ComposedStyleFunction } from "../compose/index.js"; import type { Theme as SystemTheme } from "../createTheme/index.js"; import type borders from "../borders/index.js"; import type display from "../display/index.js"; import type flexbox from "../flexbox/index.js"; import type grid from "../cssGrid/index.js"; import type palette from "../palette/index.js"; import type positions from "../positions/index.js"; import type shadows from "../shadows/index.js"; import type sizing from "../sizing/index.js"; import type spacing from "../spacing/index.js"; import type typography from "../typography/index.js"; export interface CustomSystemProps extends AliasesCSSProperties, OverwriteCSSProperties {} export type SimpleSystemKeys = keyof PropsFor>; type StandardSystemKeys = Extract; export type SystemProps = { [K in StandardSystemKeys]?: ResponsiveStyleValue | ((theme: Theme) => ResponsiveStyleValue) }; export interface BoxOwnProps { children?: React.ReactNode; ref?: React.Ref | undefined; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps | undefined; } export interface BoxTypeMap { props: AdditionalProps & BoxOwnProps; defaultComponent: RootComponent; } /** * * Demos: * * - [Box (Material UI)](https://mui.com/material-ui/react-box/) * - [Menubar (Material UI)](https://mui.com/material-ui/react-menubar/) * - [Box (MUI System)](https://mui.com/system/react-box/) * * API: * * - [Box API](https://mui.com/system/api/box/) */ declare const Box: OverridableComponent; export type BoxProps = OverrideProps, RootComponent> & { component?: React.ElementType | undefined; }; export default Box;