import type { Context } from "@earendil-works/pi-ai";
import type { Attachment } from "../attachments.js";
import type { LlmTokenUsage } from "../types.js";
type GoogleAssistantLike = {
    stopReason?: string;
    errorMessage?: string;
};
export declare function normalizeGoogleAssistantError(response: GoogleAssistantLike | null | undefined, modelId: string): Error | null;
export declare function completeGoogleText({ modelId, apiKey, context, temperature, maxOutputTokens, signal, googleBaseUrlOverride, }: {
    modelId: string;
    apiKey: string;
    context: Context;
    temperature?: number;
    maxOutputTokens?: number;
    signal: AbortSignal;
    googleBaseUrlOverride?: string | null;
}): Promise<{
    text: string;
    usage: LlmTokenUsage | null;
}>;
export declare function completeGoogleDocument({ modelId, apiKey, promptText, document, maxOutputTokens, temperature, timeoutMs, fetchImpl, googleBaseUrlOverride, }: {
    modelId: string;
    apiKey: string;
    promptText: string;
    document: Attachment;
    maxOutputTokens?: number;
    temperature?: number;
    timeoutMs: number;
    fetchImpl: typeof fetch;
    googleBaseUrlOverride?: string | null;
}): Promise<{
    text: string;
    usage: LlmTokenUsage | null;
}>;
export {};
