using System.Collections.Generic; using System.Threading.Tasks; using ModernKeePass.Domain.Dtos; namespace ModernKeePass.Application.Common.Interfaces { public interface IFileProxy { Task OpenFile(string name, string extension, bool addToRecent); Task CreateFile(string name, string extension, string description, bool addToRecent); Task ReadBinaryFile(string path); Task> ReadTextFile(string path); Task WriteToLogFile(IEnumerable data); Task WriteBinaryContentsToFile(string path, byte[] contents); void ReleaseFile(string path); } }