// Copyright © WireMock.Net
using JetBrains.Annotations;
using WireMock.Handlers;
namespace WireMock.Transformers;
///
/// Defines the transformer context used to render and evaluate templates during response transformation.
///
[PublicAPI]
public interface ITransformerContext
{
///
/// Gets the file system handler used by the current transformer context.
///
IFileSystemHandler FileSystemHandler { get; }
///
/// Renders the specified template text using the supplied model.
///
/// The template text to render.
/// The model used during rendering.
/// The rendered text.
string ParseAndRender(string text, object model);
///
/// Evaluates the specified template text using the supplied model.
///
/// The template text to evaluate.
/// The model used during evaluation.
/// The evaluated value.
object? ParseAndEvaluate(string text, object model);
}