import { BaserowClient } from "./baserow-client"; /** * User file response type */ export interface UserFile { size: number; mime_type: string; is_image: boolean; image_width: number | null; image_height: number | null; uploaded_at: string; url: string; thumbnails: Record; name: string; original_name: string; } /** * Operations for managing Baserow user files. */ export declare class UserFileOperations { private client; constructor(client: BaserowClient); /** * Uploads a file to Baserow by uploading the file contents directly. * @param fileOrFormData - The file to upload (File/Blob object) or FormData with 'file' field * @returns Information about the uploaded file * @throws {BaserowApiError} If file upload fails */ uploadFile(fileOrFormData: File | Blob | FormData): Promise; /** * Uploads a file to Baserow by downloading it from the provided URL. * @param url - The URL to download the file from * @returns Information about the uploaded file * @throws {BaserowApiError} If file upload fails */ uploadViaUrl(url: string): Promise; }