/**
 * Adds Cloudinary auto-format and auto-quality transformations to a Cloudinary URL.
 * Non-Cloudinary URLs are passed through unchanged.
 *
 * When no explicit width/height is provided, a c_limit,w_3840 cap is applied
 * to prevent downloading oversized originals while remaining sharp on 4K/retina.
 *
 * @param url - The image URL to optimize
 * @param options - Optional width/height for server-side resizing (use 2x display size for retina)
 */
export declare function optimizeCloudinaryUrl(url: string, options?: {
  width?: number;
  height?: number;
}): string;
