lib: some types to help returning resumption producer