def METHOD_NAME(trigger_event: TriggerEventType) -> dict[str, Any]:
    """Return headers for trigger event response."""
    after_params: dict[EventAfterType, str] = {
        "receive": HTMXHeaders.TRIGGER_EVENT.value,
        "settle": HTMXHeaders.TRIGGER_AFTER_SETTLE.value,
        "swap": HTMXHeaders.TRIGGER_AFTER_SWAP.value,
    }
    if trigger_header := after_params.get(trigger_event["after"]):
        return {trigger_header: encode_json({trigger_event["name"]: trigger_event["params"] or {}}).decode()}
    raise ImproperlyConfiguredException(
        "invalid value for 'after' param- allowed values are 'receive', 'settle' or 'swap'."
    )