export declare const DEFAULT_MODEL = "gemini-3.6-flash"; export declare function getApiKey(signal?: AbortSignal): Promise; export declare function getApiHost(): string; export declare function getVersionedApiBase(): string; export declare function getUploadBase(): string; /** * Re-point a provider-returned URL at the configured API host (gateway), keeping * path and query. No-op when host is unset (already the Google origin). */ export declare function rewriteUploadUrlOrigin(url: string): string; export declare function isGatewayConfigured(): boolean; export declare function buildAuthHeaders(apiKey?: string | null, cloudflareApiKey?: string | null): Record; export declare function redactGeminiApiResponse(response: Response, text: string, apiKey?: string | null, adcToken?: string | null): string; export declare function fetchGeminiApi(url: string | URL, init?: RequestInit, apiKey?: string | null): Promise; export declare function isGeminiApiAvailable(): boolean; /** * Whether the Gemini Files-API paths (YouTube and local video analysis) can * authenticate. These use the Gemini Files API and metadata endpoints, which do * not support ADC, so they still require an API key or a Cloudflare gateway. */ export declare function isGeminiApiAvailableWithVideo(): boolean; export interface GeminiApiOptions { apiKey?: string | undefined; model?: string | undefined; mimeType?: string | undefined; signal?: AbortSignal | undefined; timeoutMs?: number | undefined; } export interface GeminiGenerateContentResult { text: string; finishReason?: string; blockReason?: string; } export declare function queryGeminiApiWithInlineData(prompt: string, data: string, mimeType: string, options?: GeminiApiOptions): Promise; export declare function queryGeminiApiWithVideo(prompt: string, videoUri: string, options?: GeminiApiOptions): Promise;