/** Image analysis cache for immutable media and the complete analysis prompt. */ import type { IAgentRuntime } from "../types/runtime.js"; export interface CachedImageDescription { title: string; description: string; text: string; } /** Coerce any IMAGE_DESCRIPTION model response into a uniform description shape. */ export declare function normalizeImageDescription(response: unknown): CachedImageDescription | null; /** * Describe an image, reusing and populating the shared cache. Returns the * cached result on a hit; otherwise calls the vision model once, caches, and * returns it. Returns null when the model is unavailable, errors, or yields no * usable description (callers decide the fallback). */ export declare function describeImageCached(runtime: IAgentRuntime, imageUrl: string, prompt: string): Promise;