module HTTPX interface _Callable def call: (*untyped) -> void end module Callbacks def on: (Symbol) { (*untyped) -> void } -> self def once: (Symbol) { (*untyped) -> void } -> self def only: (Symbol) { (*untyped) -> void } -> self def emit: (Symbol, *untyped) -> void def callbacks_for?: (Symbol) -> bool def callbacks: () -> Hash[Symbol, Array[_Callable]] | (Symbol) -> Array[_Callable] end end