/** * Copyright IBM Corp. 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { type AspectRatioProps } from '../AspectRatio/AspectRatio'; export interface CardMediaProps extends Omit { /** * Provide the contents of the CardMedia. */ children?: React.ReactNode; /** * Provide an optional class to be applied to the containing node. */ className?: string; /** * Width of the media column when the card is in horizontal layout. * Accepts any valid CSS width value (e.g. '200px', '40%'). * Defaults to '33.33%'. Has no effect in vertical (default) layout. */ mediaWidth?: string; } /** * CardMedia is a media slot component that maintains aspect ratio. * * In vertical (default) mode it delegates to Carbon's AspectRatio. * In horizontal mode it renders a plain div sized to `mediaWidth` (default * 33.33%) that stretches to the full card height — no aspect-ratio math needed. */ export declare const CardMedia: { ({ children, className, ratio, mediaWidth, ...rest }: CardMediaProps): import("react/jsx-runtime").JSX.Element; displayName: string; };