using System.Collections.Generic; namespace Spectre.Console.Rendering { /// /// Represents a console encoder that can encode /// recorded segments into a string. /// public interface IAnsiConsoleEncoder { /// /// Encodes the specified segments. /// /// The segments to encode. /// The encoded string. string Encode(IEnumerable segments); } }