import{type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraFrame}from'../../../internal/variants.js';export type{LyraFrame}from'../../../internal/variants.js';export type LyraMediaCardKind='image'|'video'|'file';export interface LyraMediaCardOpenDetail{src:string;filename:string;}export interface LyraMediaCardEventMap{'lr-media-open':CustomEvent;'lr-before-media-download':CustomEvent;blur:FocusEvent;focus:FocusEvent;} /** * `` — a lightweight inline preview for one already-sent, * already-available attachment inside a rendered chat message body (e.g. * plugged into ``'s `attachments` slot, or embedded * directly by a markdown/message renderer). Distinct from two other, * similarly-named components in this family: `` is a * fuller viewer with header chrome and an async server-side-conversion * state machine (`status="converting"`), and `` is a * pre-send queued-file chip with upload progress. This component has * neither concern — it only ever shows a `src` that's already final. * * **Format dispatch.** `kind` selects `'image'` (a plain ``), `'video'` * (a plain `