// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections.Generic;
using System.Text.Json;
namespace autoShell.Handlers;
///
/// Interface for handlers that process autoShell actions.
///
internal interface IActionHandler
{
///
/// Returns the set of action names this handler supports.
///
IEnumerable SupportedActions { get; }
///
/// Handles the action identified by .
///
/// The action name.
/// The action parameters as a read-only JsonElement.
/// A describing the outcome.
ActionResult Handle(string key, JsonElement parameters);
}