import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { FailableToolCallStatus } from "./failabletoolcallstatus.js"; export declare const OutputImageGenerationServerToolItemType: { readonly OpenrouterImageGeneration: "openrouter:image_generation"; }; export type OutputImageGenerationServerToolItemType = ClosedEnum; /** * An openrouter:image_generation server tool output item */ export type OutputImageGenerationServerToolItem = { /** * The error message when the tool call failed before producing a result. Set together with `status: 'failed'`; absent on a successful call. */ error?: string | undefined; id?: string | undefined; imageB64?: string | undefined; imageUrl?: string | undefined; /** * The prompt (possibly rewritten) that the image was generated from. */ prompt?: string | undefined; /** * The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format */ result?: string | null | undefined; revisedPrompt?: string | undefined; status: FailableToolCallStatus; type: OutputImageGenerationServerToolItemType; }; /** @internal */ export declare const OutputImageGenerationServerToolItemType$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputImageGenerationServerToolItemType$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputImageGenerationServerToolItem$inboundSchema: z.ZodType; /** @internal */ export type OutputImageGenerationServerToolItem$Outbound = { error?: string | undefined; id?: string | undefined; imageB64?: string | undefined; imageUrl?: string | undefined; prompt?: string | undefined; result?: string | null | undefined; revisedPrompt?: string | undefined; status: string; type: string; }; /** @internal */ export declare const OutputImageGenerationServerToolItem$outboundSchema: z.ZodType; export declare function outputImageGenerationServerToolItemToJSON(outputImageGenerationServerToolItem: OutputImageGenerationServerToolItem): string; export declare function outputImageGenerationServerToolItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputimagegenerationservertoolitem.d.ts.map