/** * The `read_image` tool row: the summary line every tool row has, with the * image the call actually returned underneath it. * * The image is NOT behind a disclosure. A row that hides its only real content * behind a click is a row that made the user work to learn what the agent saw, * and the whole reason this plugin exists is that the picture was invisible. * Every other tool row stays collapsed because its body is text the summary * already stands in for; here the summary (a path) stands in for nothing. * * Loading, retry, and the original-image lightbox are the official attachment * atoms — the same component chat history renders — so a tool-result image and * a user-uploaded image behave identically, including the 240px long-edge fit. */ import { type ImageLoader } from '@deepseek-ai/dsh-client-ui-attachment'; import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'; import type { ReadImageState } from './read-image-model.ts'; /** Strings the row resolves from its own locale namespace. */ export interface ReadImageLabels { /** Row title, the act the call performed. */ title: string; /** Visually hidden run-state text for assistive technology. */ running: string; failed: string; stopped: string; /** Image atom strings forwarded to the official component. */ image: { image: string; open: string; openNamed: (label: string) => string; loading: string; loadFailed: string; lightbox: { dialog: string; close: string; }; }; } /** What the row draws. */ export interface ReadImageRowProps { state: ReadImageState; /** Display path, already relativized to the session workspace. */ path: string; /** The durable image; absent while running, on failure, or on a result without one. */ image: ImageAttachmentRef | undefined; /** Session-authorized loader for that image. */ load: ImageLoader; /** Failure first line shown in place of the path on an error row. */ errorSummary: string | null; /** Open the path through the host, when the surface offers it. */ onOpenFile?: ((path: string) => void) | undefined; labels: ReadImageLabels; } /** * Render one `read_image` call. * @param props - the projected model, the loader, and resolved strings. * @returns the summary row plus the image it read. */ export declare function ReadImageRow({ state, path, image, load, errorSummary, onOpenFile, labels, }: ReadImageRowProps): import("react").JSX.Element; //# sourceMappingURL=ReadImageRow.d.ts.map