using Journal.Core.Dtos;

namespace Journal.Core.Services.Entries;

public interface IEntryFileService
{
    IReadOnlyList<EntryListItem> ListEntries();
    IReadOnlyList<EntryListItem> ListTemplates();
    EntryLoadResult LoadEntry(string filePath);
    EntryTemplateLoadResult LoadTemplate(string filePath);
    EntrySaveResult SaveEntry(EntrySavePayload payload);
    EntrySaveResult SaveTemplate(EntryTemplateSavePayload payload);
    bool DeleteEntry(string filePath);
    bool DeleteTemplate(string filePath);
}
