using Microsoft.AspNetCore.Components.Forms; namespace HopFrame.Web.Services; /// /// Provides file handling capabilities for downloading and uploading files. /// public interface IFileService { /// /// Initiates a file download with the specified name and data. /// /// The name of the file to be downloaded. /// The byte array representing the file's content. public Task DownloadFile(string name, byte[] data); /// /// Allows the user to upload a file and returns the uploaded file for processing. /// /// A task that returns an IBrowserFile representing the uploaded file. public Task UploadFile(); }