// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CmdPal.Common.Text;
namespace Microsoft.CmdPal.Common.Helpers;
///
/// Represents an item that can provide precomputed fuzzy matching targets for its title and subtitle.
///
public interface IPrecomputedListItem
{
///
/// Gets the fuzzy matching target for the item's title.
///
/// The precomputed fuzzy matcher used to build the target.
/// The fuzzy target for the title.
FuzzyTarget GetTitleTarget(IPrecomputedFuzzyMatcher matcher);
///
/// Gets the fuzzy matching target for the item's subtitle.
///
/// The precomputed fuzzy matcher used to build the target.
/// The fuzzy target for the subtitle.
FuzzyTarget GetSubtitleTarget(IPrecomputedFuzzyMatcher matcher);
}