The typescript typings for functions.cloudEvent() only include the CloudEvent function signature and not the CloudEventWithCallback signature, which allows for surfacing errors and nacking message for retryability.
I have already submitted a fix PR #631 for review, and hopefully this issue is useful for tracking reviewer assignments.