/** An image sent or about to be sent, as the viewer shows it. */ export interface ViewableImage { name: string; /** The name a download saves it under. */ filename?: string | undefined; /** What the thumbnail shows: the preview, or the file itself. */ src: string; /** The file itself, loaded in place of the preview once it arrives. */ fullUrl?: string | undefined; /** The file as a link, only when following it cannot run script. */ href?: string | undefined; } /** A message's or composer's images, one at a time, at their own size or smaller to fit the window. */ export default function AttachmentImageViewer({ images, index, onIndexChange, onClose, returnFocusTo, }: { images: ViewableImage[]; /** The image shown, or null while the viewer is closed. */ index: number | null; onIndexChange: (index: number) => void; onClose: () => void; /** The thumbnail focus goes back to on close. */ returnFocusTo: (index: number) => HTMLElement | null | undefined; }): import("react").JSX.Element;