import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; import { UmbRepositoryBase } from '../repository/index.js'; import type { UmbRepositoryErrorResponse, UmbRepositoryResponse } from '../repository/index.js'; import type { TemporaryFileResponseModel } from '../backend-api/index.js'; /** * A repository for uploading temporary files * @class UmbTemporaryFileRepository * @augments {UmbRepositoryBase} */ export declare class UmbTemporaryFileRepository extends UmbRepositoryBase { #private; /** * Creates an instance of UmbTemporaryFileRepository. * @param {UmbControllerHost} host - The controller host for this controller to be appended to * @memberof UmbTemporaryFileRepository */ constructor(host: UmbControllerHost); /** * Uploads a temporary file * @param {string} id - The unique identifier of the temporary file * @param {File} file - The file to upload * @param {(progress: ProgressEvent) => void} [onProgress] - Callback invoked with upload progress * @param {AbortSignal} [abortSignal] - Signal to abort the upload * @returns {Promise>} The upload response * @memberof UmbTemporaryFileRepository */ upload(id: string, file: File, onProgress?: (progress: ProgressEvent) => void, abortSignal?: AbortSignal): Promise>; /** * Deletes a temporary file * @param {string} id - The unique identifier of the temporary file * @returns {Promise} The delete response * @memberof UmbTemporaryFileRepository */ delete(id: string): Promise; /** * Gets a temporary file * @param {string} id - The unique identifier of the temporary file * @returns {Promise>} The temporary file * @memberof UmbTemporaryFileRepository */ requestById(id: string): Promise>; }