module Selenium
  module WebDriver
    class Network
      @network: BiDi::Network

      @callbacks: Hash[String, String]

      attr_reader callbacks: Hash[String, String]

      def initialize: (Remote::Bridge bridge) -> void

      def add_authentication_handler: (String username, String password) -> String

      def add_request_handler: -> Integer

      def clear_handlers: -> Hash[nil, nil]

      def remove_handler: (Integer id) -> nil
    end
  end
end
