import type { UmbDataSourceErrorResponse, UmbDataSourceResponse } from '../repository/index.js'; import type { TemporaryFileResponseModel } from '../backend-api/index.js'; import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; /** * A data source to upload temporary files to the server * @class UmbTemporaryFileServerDataSource */ export declare class UmbTemporaryFileServerDataSource { #private; /** * Creates an instance of UmbTemporaryFileServerDataSource. * @param {UmbControllerHost} host - The controller host for this controller to be appended to * @memberof UmbTemporaryFileServerDataSource */ constructor(host: UmbControllerHost); /** * Uploads a temporary file to the server * @param {string} id - The unique identifier of the temporary file * @param {File} file - The file to upload * @param onProgress * @param abortSignal * @returns {Promise>} The upload response * @memberof UmbTemporaryFileServerDataSource */ create(id: string, file: File, onProgress?: (progress: ProgressEvent) => void, abortSignal?: AbortSignal): Promise>; /** * Gets a temporary file from the server * @param {string} id - The unique identifier of the temporary file * @returns {Promise>} The temporary file * @memberof UmbTemporaryFileServerDataSource */ read(id: string): Promise>; /** * Deletes a temporary file from the server * @param {string} id - The unique identifier of the temporary file * @returns {Promise} The delete response * @memberof UmbTemporaryFileServerDataSource */ delete(id: string): Promise; }