package ackhandler

import 

// IsFrameTypeAckEliciting returns true if the frame is ack-eliciting.
func ( wire.FrameType) bool {
	//nolint:exhaustive // The default case catches the rest.
	switch  {
	case wire.FrameTypeAck, wire.FrameTypeAckECN:
		return false
	case wire.FrameTypeConnectionClose, wire.FrameTypeApplicationClose:
		return false
	default:
		return true
	}
}

// IsFrameAckEliciting returns true if the frame is ack-eliciting.
func ( wire.Frame) bool {
	,  := .(*wire.AckFrame)
	,  := .(*wire.ConnectionCloseFrame)
	return ! && !
}

// HasAckElicitingFrames returns true if at least one frame is ack-eliciting.
func ( []Frame) bool {
	for ,  := range  {
		if IsFrameAckEliciting(.Frame) {
			return true
		}
	}
	return false
}