import type { ProviderAdapter, ProviderRequestOptions, ProviderResponse, StreamChunk, AiMessage, FinishReason } from '../../types.js'; import type { GoogleCacheRegistry } from '../google-cache-registry.js'; import type { GoogleConfig } from './config.js'; export declare class GoogleAdapter implements ProviderAdapter { private readonly config; private readonly model; private readonly cacheRegistry?; constructor(config: GoogleConfig, model: string, cacheRegistry?: GoogleCacheRegistry | undefined); private readonly getClient; /** * Build the request payload, consulting the cache registry if `options.cache` * is set. Returns the payload for `generateContent` / `generateContentStream` * plus the cache key (so the caller can `forget()` it on a 404 stale-cache * retry). */ private buildPayload; generate(options: ProviderRequestOptions): Promise; stream(options: ProviderRequestOptions): AsyncIterable; } /** * Map a Gemini candidate finish reason onto the neutral {@link FinishReason}. * A function-call turn reports `STOP`, so that case is decided by the caller * having seen a `functionCall` part rather than by the reason itself. */ export declare function mapGeminiFinishReason(reason: string, sawFunctionCall: boolean): FinishReason; export declare function toGeminiContents(messages: AiMessage[]): { system: string | undefined; contents: unknown[]; }; //# sourceMappingURL=chat.d.ts.map