import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { ImageGenerationUsage } from "./imagegenerationusage.js"; /** * Emitted when generation completes and the final image is available */ export type ImageGenCompletedEvent = { /** * Base64-encoded final image data */ b64Json: string; /** * Unix timestamp (seconds) when the image was generated */ created: number; /** * Media type (MIME type) of the image, e.g. `image/png`, `image/jpeg`, `image/webp`, `image/svg+xml`. May be omitted if the format could not be determined. */ mediaType?: string | undefined; /** * The event type */ type: "image_generation.completed"; /** * Token and cost usage for the image generation request, when available */ usage?: ImageGenerationUsage | undefined; }; /** @internal */ export declare const ImageGenCompletedEvent$inboundSchema: z.ZodType; export declare function imageGenCompletedEventFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=imagegencompletedevent.d.ts.map