import { P as ProviderCallOptions, R as ReforgeProvider } from '../types-BthWWfka.js'; import 'zod'; interface GoogleCallOptions extends ProviderCallOptions { generationConfig?: Record; safetySettings?: unknown[]; systemInstruction?: { role?: string; parts?: Array<{ text: string; }>; }; modelOptions?: Record; chatOptions?: Record; } /** * Minimal subset of the Google Generative AI client used by the adapter. */ interface GoogleGenerativeAIClient { getGenerativeModel(params: Record): { startChat(params: Record): { sendMessage(message: unknown): Promise<{ response: { text(): string; }; }>; }; }; } /** * Create a `ReforgeProvider` for Google Gemini / Vertex AI. * * Only needed for **direct** Google AI access via the `@google/generative-ai` * SDK. If you're using Gemini through an OpenAI-compatible proxy, use * `openaiCompatible()` instead. * * @param client - A `GoogleGenerativeAI` instance (from `@google/generative-ai`). * @param model - The model identifier (e.g. `"gemini-2.0-flash"`). * @returns A `ReforgeProvider` ready to use with `forge()`. * * @example * ```ts * import { GoogleGenerativeAI } from '@google/generative-ai'; * import { google } from 'reforge-ai/google'; * * const client = new GoogleGenerativeAI(process.env.GOOGLE_API_KEY); * const provider = google(client, 'gemini-2.0-flash'); * ``` */ declare function google(client: GoogleGenerativeAIClient, model: string): ReforgeProvider; export { type GoogleCallOptions, google };