/** * Google Generative Language codec. Pure request/response translation between * OpenAI Chat Completions JSON and Gemini generateContent, including stream * deltas. HTTP transport lives in `google-backend.ts`. */ import { type ChatBody } from "./backend-core.js"; export declare function googleRequest(body: ChatBody): Record; type GoogleStreamToolPart = { providerIndex: number; toolIndex: number; id: string; }; export type GoogleStreamPartState = { nextProviderIndex: number; nextToolIndex: number; openThoughtIndex?: number; toolParts: Map; thoughtText: Map; }; export declare function createGoogleStreamPartState(): GoogleStreamPartState; export declare function googleMessage(payload: Record, streamState?: GoogleStreamPartState): Record; export declare function googleUsage(payload: Record): { prompt_tokens: unknown; completion_tokens: unknown; total_tokens: unknown; }; export declare function googleChatChunk(payload: Record, model: string, streamState: GoogleStreamPartState): Record; export {};