import type { StreamFn } from "@mariozechner/pi-agent-core"; import type { Api, Model } from "@mariozechner/pi-ai"; import { buildGuardedModelFetch } from "../provider-transport-fetch.js"; type CustomEntryLike = { type?: unknown; customType?: unknown; data?: unknown; }; type GooglePromptCacheSessionManager = { appendCustomEntry(customType: string, data?: unknown): unknown; getEntries(): CustomEntryLike[]; }; type GooglePromptCacheModel = Model & { baseUrl?: string; headers?: Record; provider: string; }; type PrepareGooglePromptCacheStreamFnParams = { apiKey?: string; extraParams?: Record; model: GooglePromptCacheModel; modelId: string; provider: string; sessionManager: GooglePromptCacheSessionManager; signal?: AbortSignal; streamFn: StreamFn | undefined; systemPrompt?: string; }; type GooglePromptCacheDeps = { buildGuardedFetch?: typeof buildGuardedModelFetch; now?: () => number; }; export declare function prepareGooglePromptCacheStreamFn(params: PrepareGooglePromptCacheStreamFnParams, deps?: GooglePromptCacheDeps): Promise; export {};