import type { AttemptToolContent, AttemptToolResult } from "@opengeni/contracts"; type ImageMimeType = "image/png" | "image/jpeg" | "image/webp"; export type CodemodeLocalImage = Readonly<{ /** Local path readable with the agent's `view_image` tool. */ path: string; mimeType: ImageMimeType; sizeBytes: number; }>; /** Typed Code Mode calls with image blocks retain every structured and non-image block. */ export type CodemodeMultimodalValue = Readonly<{ structuredContent: T; images: readonly CodemodeLocalImage[]; otherContent: readonly Exclude[]; }>; /** Preserve image blocks as private local files instead of base64 in program output. */ export declare function materializeCodemodeImages(result: AttemptToolResult, options?: { saveTo?: string; requireOne?: boolean; }): Promise; export {};