Transformation function for mapping an incoming chunk to a new representation.
The type of input chunk.
The type of output chunk.
The item to transform.
The zero-based sequential index of the item.
The transformed item or a Promise resolving to it.
Transformation function for mapping an incoming chunk to a new representation.