namespace TinyChat; /// /// Represents a text input control for sending chat messages. /// public interface IChatInputControl { /// /// The event that is raised when cancellation of a streaming message is requested. /// public event EventHandler? CancellationRequested; /// /// Occurs when a message is sent from the text box and allows the cancellation of sending. /// public event EventHandler MessageSending; /// /// Sets whether the control is receiving a stream or not /// /// The flag specifying whether a stream is being received or not /// The flag specifying whether the stream can be cancelled or not void SetIsReceivingStream(bool isReceiving, bool allowCancellation); }