namespace JSMR.Application.Common.Search;

public interface ISearchQueryHandler<TItem, TCriteria, TSortField>
    where TCriteria : new()
    where TSortField : struct, Enum
{
    Task<SearchResult<TItem>> HandleAsync(SearchOptions<TCriteria, TSortField> options, CancellationToken cancellationToken = default);
}