import * as React from 'react'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; export interface CardMediaTypeMap { props: P & { /** * The content of the component. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: { /** Styles applied to the root element. */ root?: string; /** Styles applied to the root element if `component="video, audio, picture, iframe, or img"`. */ media?: string; /** Styles applied to the root element if `component="picture or img"`. */ img?: string; }; /** * Image to be displayed as a background image. * Either `image` or `src` prop must be specified. * Note that caller must specify height otherwise the image will not be visible. */ image?: string; /** * An alias for `image` property. * Available only with media components. * Media components: `video`, `audio`, `picture`, `iframe`, `img`. */ src?: string; }; defaultComponent: D; } /** * * Demos: * * - [Cards](https://material-ui.com/components/cards/) * * API: * * - [CardMedia API](https://material-ui.com/api/card-media/) */ declare const CardMedia: OverridableComponent>; export type CardMediaClassKey = keyof NonNullable; export type CardMediaProps = OverrideProps< CardMediaTypeMap, D >; export default CardMedia;