export type ImageFormat = "jpeg" | "webp" | "png" | "heic"; export interface CompressedImage { file: File; preview: string; format: ImageFormat; } export interface UploadImageRequest { file_extension?: ImageFormat; expires_in?: number; content_length_range?: { min_bytes?: number; max_bytes?: number; }; } export interface UploadImageResponse { url: string; expires_in: number; fields: { [key: string]: string; }; public_url: string; } export interface UploadedImage { url: string; preview: string; name: string; size: number; }