// Copyright (c) Arlo Godfrey. All Rights Reserved.
// Licensed under the GNU Lesser General Public License, Version 3.0 with additional terms.
// See the LICENSE, LICENSE.LESSER and LICENSE.ADDITIONAL files in the project root for more information.
using System;
using System.Collections.Generic;
using System.Threading;
namespace StrixMusic.Sdk.BaseModels
{
///
/// Delegates search operations
///
public interface ISearchBase : IAsyncDisposable
{
///
/// Given a query, return suggested completed queries.
///
/// Search query
/// A cancellation token that may be used to cancel the ongoing task.
/// Suggested completed queries.
public IAsyncEnumerable GetSearchAutoCompleteAsync(string query, CancellationToken cancellationToken = default);
}
}