using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace JsonRPC4.Router.Abstractions { public interface IRpcResponseSerializer { Task SerializeAsync(RpcResponse response, Stream stream); Task SerializeBulkAsync(IEnumerable responses, Stream stream); } }