import { type UmbImagingResizeModel } from './types.js'; interface BatchedItem { unique: string; url?: string; } type FetchFn = (uniques: Array, model?: UmbImagingResizeModel) => Promise<{ data?: Array; error?: unknown; }>; /** * Batches individual imaging resize requests together. * Multiple calls within the same event loop turn are collected and sent as a single API request, * grouped by resize model configuration (width/height/mode/format). * @param {string} unique - The media item unique identifier * @param {UmbImagingResizeModel | undefined} imagingModel - The resize configuration * @param {FetchFn} fetchFn - The function to call with batched uniques * @returns {Promise} A promise resolving to the URL for this specific unique, or undefined if not found */ export declare function batchImagingRequest(unique: string, imagingModel: UmbImagingResizeModel | undefined, fetchFn: FetchFn): Promise; /** * Clears all cached imaging URLs for the given unique identifier. * Call this when a media item is saved or deleted to ensure fresh URLs are fetched. * @param {string} unique - The media item unique identifier to clear from cache */ export declare function clearImagingCache(unique: string): void; /** * Clears the entire imaging URL cache. * @internal */ export declare function clearAllImagingCache(): void; export {};