-callback get_stderr(term()) -> binary().
-callback get_stdout(term()) -> binary().
-callback init(map()) -> term().
-callback read_stdin(non_neg_integer() | line | all, term()) -> {ok, binary() | eof, term()}.
-callback set_stdout(binary(), term()) -> term().
-callback write_stderr(binary(), term()) -> term().
-callback write_stdout(binary(), term()) -> term().
-spec get_stderr(module(), term()) -> binary().
-spec get_stdout(module(), term()) -> binary().
-spec init(module(), map()) -> term().
-spec read_stdin(module(), non_neg_integer() | line | all, term()) -> {ok, binary() | eof, term()}.
-spec set_stdout(module(), binary(), term()) -> term().
-spec write_stderr(module(), binary(), term()) -> term().
-spec write_stdout(module(), binary(), term()) -> term().