using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Bit.Core.Models.View; namespace Bit.Core.Abstractions { public interface ISearchService { void ClearIndex(); Task IndexCiphersAsync(); bool IsSearchable(string query); Task> SearchCiphersAsync(string query, Func filter = null, List ciphers = null, CancellationToken ct = default); List SearchCiphersBasic(List ciphers, string query, CancellationToken ct = default, bool deleted = false); Task> SearchSendsAsync(string query, Func filter = null, List sends = null, CancellationToken ct = default); List SearchSendsBasic(List sends, string query, CancellationToken ct = default, bool deleted = false); } }