-type type() :: #{'__type__' => 'erlang.io.StringWriter', pid => pid()}.
-spec '__new__'() -> type().
-spec '__new__'(binary()) -> type().
-spec delete(type(), pos_integer(), pos_integer()) -> type().