import type { Model } from "@oh-my-pi/pi-catalog/types"; import type { ImageGenerationOptions, ImageGenerationRequest, ImageGenerationResult } from "./types.js"; interface GeminiPart { text?: string; inlineData?: { data?: string; mimeType?: string; }; } /** One `generateContent` response, or one chunk of its SSE stream. */ export interface GeminiImageResponse { candidates?: Array<{ content?: { parts?: GeminiPart[]; }; finishReason?: string; }>; usageMetadata?: { promptTokenCount?: number; candidatesTokenCount?: number; totalTokenCount?: number; }; } /** The user turn of a Gemini image request: reference images first, then the prompt. */ export declare function geminiImageContents(request: ImageGenerationRequest): Array<{ role: "user"; parts: GeminiPart[]; }>; /** * Collect images, text and usage from a response or its stream chunks: parts * within a response are separate paragraphs, chunks continue the same text, * and the last usage report stands. */ export declare function geminiImageResult(responses: Iterable): ImageGenerationResult; export declare function generateGoogleImage(model: Model, request: ImageGenerationRequest, options: ImageGenerationOptions): Promise; export {};