import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { ColorPaletteProp } from '../styles/types/colorSystem.js'; import { VariantProp } from '../styles/types/variants.js'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; declare type AspectRatioSlot = "root" | "content"; interface AspectRatioPropsColorOverrides { } interface AspectRatioPropsVariantOverrides { } interface ComponentsProps { root?: SlotComponentProps<"div", { sx?: SxProps; }, AspectRatioOwnerState>; content?: SlotComponentProps<"div", { sx?: SxProps; }, AspectRatioOwnerState>; } interface AspectRatioTypeMap

{ props: P & { /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * Used to render icon or text elements inside the AspectRatio if `src` is not set. * This can be an element, or just a string. */ children?: React.ReactNode; /** * The props used for each slot inside the component. * @default {} */ componentsProps?: ComponentsProps; /** * The minimum calculated height of the element (not the CSS height). */ minHeight?: number | string; /** * The maximum calculated height of the element (not the CSS height). */ maxHeight?: number | string; /** * The CSS object-fit value of the first-child. */ objectFit?: React.CSSProperties["objectFit"]; /** * The aspect-ratio of the element. The current implementation uses padding instead of the CSS aspect-ratio due to browser support. * https://caniuse.com/?search=aspect-ratio * @default '16 / 9' */ ratio?: number | string; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * The variant to use. * @default 'soft' */ variant?: OverridableStringUnion; }; defaultComponent: D; } declare type AspectRatioProps = OverrideProps, D>; interface AspectRatioOwnerState extends AspectRatioProps { } export { AspectRatioOwnerState, AspectRatioProps, AspectRatioPropsColorOverrides, AspectRatioPropsVariantOverrides, AspectRatioSlot, AspectRatioTypeMap };