/**
 * Image handling for tool execution results.
 *
 * Extracts image blocks from tool results, produces text fallbacks for
 * terminals without image support, and resolves renderable image data
 * (with Kitty PNG conversion when needed).
 */
import { getCapabilities } from '../../../tui/index.js';
import type { ToolExecutionContentBlock, ToolExecutionResult } from './tool-execution-types.js';
type TerminalCapabilities = ReturnType<typeof getCapabilities>;
export interface ResolvedToolExecutionImage {
    data: string;
    mimeType: string;
}
/** Extract image content blocks from a tool execution result. */
export declare function getToolExecutionImageBlocks(result?: ToolExecutionResult): ToolExecutionContentBlock[];
/**
 * Build the text output string from a tool result.
 * Joins text blocks and appends image fallback indicators when images
 * cannot be displayed inline.
 */
export declare function getToolExecutionTextOutput(result: ToolExecutionResult | undefined, options: {
    showImages: boolean;
    capabilities?: TerminalCapabilities;
}): string;
/**
 * Resolve an image block to renderable data for the current terminal.
 * Returns null if the terminal doesn't support images, images are disabled,
 * or the format is incompatible (e.g. non-PNG on Kitty without conversion).
 */
export declare function resolveRenderableToolImage(block: ToolExecutionContentBlock, convertedImage: ResolvedToolExecutionImage | undefined, capabilities: TerminalCapabilities, showImages: boolean): ResolvedToolExecutionImage | null;
export {};
//# sourceMappingURL=tool-execution-images.d.ts.map