package io.sentry; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.io.Writer; import java.util.Map; /* loaded from: classes3.dex */ public interface ISerializer { T deserialize(Reader reader, Class cls); T deserializeCollection(Reader reader, Class cls, JsonDeserializer jsonDeserializer); SentryEnvelope deserializeEnvelope(InputStream inputStream); String serialize(Map map) throws Exception; void serialize(SentryEnvelope sentryEnvelope, OutputStream outputStream) throws Exception; void serialize(T t, Writer writer) throws IOException; }