import { ComponentPropsWithoutRef } from 'react'; import { MediaAttachment } from '../../internal/components/MediaAttachment/types'; export type { AudioMediaAttachment, DocumentMediaAttachment, ImageMediaAttachment, MediaAttachment, MediaKind, VideoMediaAttachment, } from '../../internal/components/MediaAttachment/types'; export type AgentMediaCardProps = Omit, "children" | "style"> & { /** Drives the metadata and preview or player selected by media kind. */ media: MediaAttachment; /** * Places the file name within the document outline without changing its * visual style. Defaults to `4`. */ titleLevel?: 3 | 4 | 5 | 6; /** Announced as an alert below the card. Empty strings render nothing. */ error?: string; /** * Overrides the open-file action. Without it, the action opens `media.href` * in a new tab; either value makes the action available. */ onDownload?: () => void | Promise; /** * Enables rich image, video, and audio treatments. `false` collapses every * kind to the compact metadata row. Defaults to `true`. */ showPreview?: boolean; className?: string; };