Arie/serveme

View on GitHub
sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi

Summary

Maintainability
Test Coverage
# typed: true

# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `ruby-progressbar` gem.
# Please instead update this file by running `bin/tapioca gem ruby-progressbar`.

# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#4
class ProgressBar
  class << self
    # source://ruby-progressbar//lib/ruby-progressbar.rb#9
    def create(*args); end
  end
end

# source://ruby-progressbar//lib/ruby-progressbar/base.rb#17
class ProgressBar::Base
  extend ::Forwardable

  # @return [Base] a new instance of Base
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#45
  def initialize(options = T.unsafe(nil)); end

  # source://forwardable/1.3.3/forwardable.rb#231
  def clear(*args, **_arg1, &block); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#137
  def decrement; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#92
  def finish; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#129
  def finished?; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#203
  def format(other); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#203
  def format=(other); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#141
  def increment; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#199
  def inspect; end

  # source://forwardable/1.3.3/forwardable.rb#231
  def log(*args, **_arg1, &block); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#102
  def pause; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#123
  def paused?; end

  # source://forwardable/1.3.3/forwardable.rb#231
  def progress(*args, **_arg1, &block); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#145
  def progress=(new_progress); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#153
  def progress_mark=(mark); end

  # source://forwardable/1.3.3/forwardable.rb#231
  def refresh(*args, **_arg1, &block); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#157
  def remainder_mark=(mark); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#114
  def reset; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#110
  def resume; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#87
  def start(options = T.unsafe(nil)); end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#133
  def started?; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#106
  def stop; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#123
  def stopped?; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#161
  def title; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#165
  def title=(title); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#176
  def to_h; end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#169
  def to_s(new_format = T.unsafe(nil)); end

  # source://forwardable/1.3.3/forwardable.rb#231
  def total(*args, **_arg1, &block); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#149
  def total=(new_total); end

  protected

  # Returns the value of attribute autofinish.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def autofinish; end

  # Sets the attribute autofinish
  #
  # @param value the value to set the attribute autofinish to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def autofinish=(_arg0); end

  # Returns the value of attribute autostart.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def autostart; end

  # Sets the attribute autostart
  #
  # @param value the value to set the attribute autostart to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def autostart=(_arg0); end

  # Returns the value of attribute bar_component.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def bar_component; end

  # Sets the attribute bar_component
  #
  # @param value the value to set the attribute bar_component to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def bar_component=(_arg0); end

  # Returns the value of attribute finished.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def finished; end

  # Sets the attribute finished
  #
  # @param value the value to set the attribute finished to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def finished=(_arg0); end

  # Returns the value of attribute output.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def output; end

  # Sets the attribute output
  #
  # @param value the value to set the attribute output to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def output=(_arg0); end

  # Returns the value of attribute percentage_component.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def percentage_component; end

  # Sets the attribute percentage_component
  #
  # @param value the value to set the attribute percentage_component to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def percentage_component=(_arg0); end

  # Returns the value of attribute progressable.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def progressable; end

  # Sets the attribute progressable
  #
  # @param value the value to set the attribute progressable to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def progressable=(_arg0); end

  # Returns the value of attribute projector.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def projector; end

  # Sets the attribute projector
  #
  # @param value the value to set the attribute projector to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def projector=(_arg0); end

  # Returns the value of attribute rate_component.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def rate_component; end

  # Sets the attribute rate_component
  #
  # @param value the value to set the attribute rate_component to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def rate_component=(_arg0); end

  # Returns the value of attribute time_component.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def time_component; end

  # Sets the attribute time_component
  #
  # @param value the value to set the attribute time_component to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def time_component=(_arg0); end

  # Returns the value of attribute timer.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def timer; end

  # Sets the attribute timer
  #
  # @param value the value to set the attribute timer to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def timer=(_arg0); end

  # Returns the value of attribute title_component.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def title_component; end

  # Sets the attribute title_component
  #
  # @param value the value to set the attribute title_component to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#213
  def title_component=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/base.rb#226
  def update_progress(*args); end
end

# source://ruby-progressbar//lib/ruby-progressbar/base.rb#28
ProgressBar::Base::RUNNING_AVERAGE_RATE_DEPRECATION_WARNING = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/base.rb#21
ProgressBar::Base::SMOOTHING_DEPRECATION_WARNING = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#2
module ProgressBar::Calculators; end

# source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#3
class ProgressBar::Calculators::Length
  # @return [Length] a new instance of Length
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#8
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#25
  def calculate_length; end

  # Returns the value of attribute current_length.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
  def current_length; end

  # Sets the attribute current_length
  #
  # @param value the value to set the attribute current_length to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
  def current_length=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#14
  def length; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#18
  def length_changed?; end

  # Returns the value of attribute length_override.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#4
  def length_override; end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#33
  def length_override=(other); end

  # Returns the value of attribute output.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
  def output; end

  # Sets the attribute output
  #
  # @param value the value to set the attribute output to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#5
  def output=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#29
  def reset_length; end

  private

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#56
  def dynamic_width; end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#85
  def dynamic_width_stty; end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#89
  def dynamic_width_tput; end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#76
  def dynamic_width_via_io_object; end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#71
  def dynamic_width_via_output_stream_object; end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#81
  def dynamic_width_via_system_calls; end

  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#43
  def terminal_width; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/calculators/length.rb#93
  def unix?; end
end

# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#5
module ProgressBar::Components; end

# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#6
class ProgressBar::Components::Bar
  # @return [Bar] a new instance of Bar
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#17
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#35
  def bar(length); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#63
  def bar_with_percentage(length); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#41
  def complete_bar(length); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#47
  def complete_bar_with_percentage(length); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#53
  def incomplete_space(length); end

  # Returns the value of attribute length.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def length; end

  # Sets the attribute length
  #
  # @param value the value to set the attribute length to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def length=(_arg0); end

  # Returns the value of attribute progress.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def progress; end

  # Sets the attribute progress
  #
  # @param value the value to set the attribute progress to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def progress=(_arg0); end

  # Returns the value of attribute progress_mark.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def progress_mark; end

  # Sets the attribute progress_mark
  #
  # @param value the value to set the attribute progress_mark to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def progress_mark=(_arg0); end

  # Returns the value of attribute remainder_mark.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def remainder_mark; end

  # Sets the attribute remainder_mark
  #
  # @param value the value to set the attribute remainder_mark to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def remainder_mark=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#25
  def to_s(options = T.unsafe(nil)); end

  # Returns the value of attribute upa_steps.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def upa_steps; end

  # Sets the attribute upa_steps
  #
  # @param value the value to set the attribute upa_steps to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#11
  def upa_steps=(_arg0); end

  private

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#91
  def completed_length; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#81
  def incomplete_string; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#71
  def integrated_percentage_complete_string; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#77
  def standard_complete_string; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#95
  def unknown_progress_frame; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#85
  def unknown_string; end
end

# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#7
ProgressBar::Components::Bar::DEFAULT_PROGRESS_MARK = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#8
ProgressBar::Components::Bar::DEFAULT_REMAINDER_MARK = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/bar.rb#9
ProgressBar::Components::Bar::DEFAULT_UPA_STEPS = T.let(T.unsafe(nil), Array)

# source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#3
class ProgressBar::Components::Percentage
  # @return [Percentage] a new instance of Percentage
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#6
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#14
  def justified_percentage; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#22
  def justified_percentage_with_precision; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#10
  def percentage; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#18
  def percentage_with_precision; end

  # Returns the value of attribute progress.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#4
  def progress; end

  # Sets the attribute progress
  #
  # @param value the value to set the attribute progress to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/percentage.rb#4
  def progress=(_arg0); end
end

# source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#3
class ProgressBar::Components::Rate
  # @return [Rate] a new instance of Rate
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#8
  def initialize(options = T.unsafe(nil)); end

  # Returns the value of attribute progress.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
  def progress; end

  # Sets the attribute progress
  #
  # @param value the value to set the attribute progress to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
  def progress=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#14
  def rate_of_change(format_string = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#20
  def rate_of_change_with_precision; end

  # Returns the value of attribute rate_scale.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
  def rate_scale; end

  # Sets the attribute rate_scale
  #
  # @param value the value to set the attribute rate_scale to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
  def rate_scale=(_arg0); end

  # Returns the value of attribute timer.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
  def timer; end

  # Sets the attribute timer
  #
  # @param value the value to set the attribute timer to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#4
  def timer=(_arg0); end

  private

  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#30
  def base_rate; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#34
  def elapsed_seconds; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/rate.rb#26
  def scaled_rate; end
end

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#6
class ProgressBar::Components::Time
  # @return [Time] a new instance of Time
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#21
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#31
  def elapsed_with_label; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#47
  def estimated_wall_clock; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#43
  def estimated_with_friendly_oob; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#27
  def estimated_with_label(out_of_bounds_time_format = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#35
  def estimated_with_no_oob; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#39
  def estimated_with_unknown_oob; end

  protected

  # Returns the value of attribute progress.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60
  def progress; end

  # Sets the attribute progress
  #
  # @param value the value to set the attribute progress to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60
  def progress=(_arg0); end

  # Returns the value of attribute projector.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60
  def projector; end

  # Sets the attribute projector
  #
  # @param value the value to set the attribute projector to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60
  def projector=(_arg0); end

  # Returns the value of attribute timer.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60
  def timer; end

  # Sets the attribute timer
  #
  # @param value the value to set the attribute timer to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#60
  def timer=(_arg0); end

  private

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#80
  def elapsed; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#66
  def estimated(out_of_bounds_time_format); end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#94
  def estimated_seconds_remaining; end

  # source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#88
  def estimated_with_elapsed_fallback(out_of_bounds_time_format); end
end

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#14
ProgressBar::Components::Time::ELAPSED_LABEL = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#13
ProgressBar::Components::Time::ESTIMATED_LABEL = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#12
ProgressBar::Components::Time::NO_TIME_ELAPSED_TEXT = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#11
ProgressBar::Components::Time::OOB_FRIENDLY_TIME_TEXT = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#9
ProgressBar::Components::Time::OOB_LIMIT_IN_HOURS = T.let(T.unsafe(nil), Integer)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#16
ProgressBar::Components::Time::OOB_TEXT_TO_FORMAT = T.let(T.unsafe(nil), Hash)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#8
ProgressBar::Components::Time::OOB_TIME_FORMATS = T.let(T.unsafe(nil), Array)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#10
ProgressBar::Components::Time::OOB_UNKNOWN_TIME_TEXT = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#7
ProgressBar::Components::Time::TIME_FORMAT = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/time.rb#15
ProgressBar::Components::Time::WALL_CLOCK_FORMAT = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#3
class ProgressBar::Components::Title
  # @return [Title] a new instance of Title
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#8
  def initialize(options = T.unsafe(nil)); end

  # Returns the value of attribute title.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#6
  def title; end

  # Sets the attribute title
  #
  # @param value the value to set the attribute title to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#6
  def title=(_arg0); end
end

# source://ruby-progressbar//lib/ruby-progressbar/components/title.rb#4
ProgressBar::Components::Title::DEFAULT_TITLE = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#2
module ProgressBar::Format; end

# source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#3
class ProgressBar::Format::Formatter
  class << self
    # source://ruby-progressbar//lib/ruby-progressbar/format/formatter.rb#4
    def process(format_string, max_length, bar); end
  end
end

# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#3
class ProgressBar::Format::Molecule
  # @return [Molecule] a new instance of Molecule
  #
  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#33
  def initialize(letter); end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#38
  def bar_molecule?; end

  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#46
  def full_key; end

  # Returns the value of attribute key.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30
  def key; end

  # Sets the attribute key
  #
  # @param value the value to set the attribute key to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30
  def key=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#50
  def lookup_value(environment, length = T.unsafe(nil)); end

  # Returns the value of attribute method_name.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30
  def method_name; end

  # Sets the attribute method_name
  #
  # @param value the value to set the attribute method_name to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#30
  def method_name=(_arg0); end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#42
  def non_bar_molecule?; end
end

# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#28
ProgressBar::Format::Molecule::BAR_MOLECULES = T.let(T.unsafe(nil), Array)

# source://ruby-progressbar//lib/ruby-progressbar/format/molecule.rb#4
ProgressBar::Format::Molecule::MOLECULES = T.let(T.unsafe(nil), Hash)

# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#5
class ProgressBar::Format::String < ::String
  # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#13
  def bar_molecule_placeholder_length; end

  # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#21
  def bar_molecules; end

  # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#9
  def displayable_length; end

  # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#25
  def molecules; end

  # source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#17
  def non_bar_molecules; end
end

# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#7
ProgressBar::Format::String::ANSI_SGR_PATTERN = T.let(T.unsafe(nil), Regexp)

# source://ruby-progressbar//lib/ruby-progressbar/format/string.rb#6
ProgressBar::Format::String::MOLECULE_PATTERN = T.let(T.unsafe(nil), Regexp)

# source://ruby-progressbar//lib/ruby-progressbar/errors/invalid_progress_error.rb#2
class ProgressBar::InvalidProgressError < ::RuntimeError; end

# source://ruby-progressbar//lib/ruby-progressbar/output.rb#5
class ProgressBar::Output
  # @return [Output] a new instance of Output
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#10
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#37
  def clear_string; end

  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#41
  def length; end

  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#30
  def log(string); end

  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#50
  def refresh(options = T.unsafe(nil)); end

  # Returns the value of attribute stream.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#8
  def stream; end

  # Sets the attribute stream
  #
  # @param value the value to set the attribute stream to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#8
  def stream=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#45
  def with_refresh; end

  protected

  # Returns the value of attribute bar.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60
  def bar; end

  # Sets the attribute bar
  #
  # @param value the value to set the attribute bar to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60
  def bar=(_arg0); end

  # Returns the value of attribute length_calculator.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60
  def length_calculator; end

  # Sets the attribute length_calculator
  #
  # @param value the value to set the attribute length_calculator to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60
  def length_calculator=(_arg0); end

  # Returns the value of attribute throttle.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60
  def throttle; end

  # Sets the attribute throttle
  #
  # @param value the value to set the attribute throttle to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#60
  def throttle=(_arg0); end

  private

  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#66
  def print_and_flush; end

  class << self
    # source://ruby-progressbar//lib/ruby-progressbar/output.rb#20
    def detect(options = T.unsafe(nil)); end
  end
end

# source://ruby-progressbar//lib/ruby-progressbar/output.rb#6
ProgressBar::Output::DEFAULT_OUTPUT_STREAM = T.let(T.unsafe(nil), IO)

# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#4
module ProgressBar::Outputs; end

# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#5
class ProgressBar::Outputs::NonTty < ::ProgressBar::Output
  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#18
  def bar_update_string; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#8
  def clear; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#28
  def default_format; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#38
  def eol; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#14
  def last_update_length; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#36
  def refresh_with_format_change(*_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#32
  def resolve_format(*_arg0); end

  protected

  # Sets the attribute last_update_length
  #
  # @param value the value to set the attribute last_update_length to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#44
  def last_update_length=(_arg0); end
end

# source://ruby-progressbar//lib/ruby-progressbar/outputs/non_tty.rb#6
ProgressBar::Outputs::NonTty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#5
class ProgressBar::Outputs::Tty < ::ProgressBar::Output
  # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#15
  def bar_update_string; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#10
  def clear; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#19
  def default_format; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#27
  def eol; end

  # source://ruby-progressbar//lib/ruby-progressbar/output.rb#45
  def refresh_with_format_change; end

  # source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#23
  def resolve_format(other_format); end
end

# source://ruby-progressbar//lib/ruby-progressbar/outputs/tty.rb#6
ProgressBar::Outputs::Tty::DEFAULT_FORMAT_STRING = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#4
class ProgressBar::Progress
  # @return [Progress] a new instance of Progress
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#12
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#104
  def absolute; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#41
  def decrement; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#23
  def finish; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#27
  def finished?; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#31
  def increment; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#85
  def none?; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#73
  def percentage_completed; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#97
  def percentage_completed_with_precision; end

  # Returns the value of attribute progress.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#8
  def progress; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#55
  def progress=(new_progress); end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#51
  def reset; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#18
  def start(options = T.unsafe(nil)); end

  # Returns the value of attribute starting_position.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#10
  def starting_position; end

  # Sets the attribute starting_position
  #
  # @param value the value to set the attribute starting_position to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#10
  def starting_position=(_arg0); end

  # Returns the value of attribute total.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#8
  def total; end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#64
  def total=(new_total); end

  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#93
  def total_with_unknown_indicator; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/progress.rb#89
  def unknown?; end
end

# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#6
ProgressBar::Progress::DEFAULT_BEGINNING_POSITION = T.let(T.unsafe(nil), Integer)

# source://ruby-progressbar//lib/ruby-progressbar/progress.rb#5
ProgressBar::Progress::DEFAULT_TOTAL = T.let(T.unsafe(nil), Integer)

# source://ruby-progressbar//lib/ruby-progressbar/projector.rb#4
class ProgressBar::Projector
  class << self
    # source://ruby-progressbar//lib/ruby-progressbar/projector.rb#10
    def from_type(name); end
  end
end

# source://ruby-progressbar//lib/ruby-progressbar/projector.rb#5
ProgressBar::Projector::DEFAULT_PROJECTOR = ProgressBar::Projectors::SmoothedAverage

# source://ruby-progressbar//lib/ruby-progressbar/projector.rb#6
ProgressBar::Projector::NAME_TO_PROJECTOR_MAP = T.let(T.unsafe(nil), Hash)

# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#2
module ProgressBar::Projectors; end

# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#3
class ProgressBar::Projectors::SmoothedAverage
  # @return [SmoothedAverage] a new instance of SmoothedAverage
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#11
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#24
  def decrement; end

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#28
  def increment; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#52
  def none?; end

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#32
  def progress; end

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#42
  def progress=(new_progress); end

  # Returns the value of attribute projection.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#9
  def projection; end

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#38
  def reset; end

  # Returns the value of attribute samples.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7
  def samples; end

  # Sets the attribute samples
  #
  # @param value the value to set the attribute samples to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7
  def samples=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#19
  def start(options = T.unsafe(nil)); end

  # Returns the value of attribute strength.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7
  def strength; end

  # Sets the attribute strength
  #
  # @param value the value to set the attribute strength to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#7
  def strength=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#36
  def total=(_new_total); end

  protected

  # Sets the attribute projection
  #
  # @param value the value to set the attribute projection to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#62
  def projection=(_arg0); end

  private

  # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#66
  def absolute; end

  class << self
    # source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#56
    def calculate(current_projection, new_value, rate); end
  end
end

# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#5
ProgressBar::Projectors::SmoothedAverage::DEFAULT_BEGINNING_POSITION = T.let(T.unsafe(nil), Integer)

# source://ruby-progressbar//lib/ruby-progressbar/projectors/smoothed_average.rb#4
ProgressBar::Projectors::SmoothedAverage::DEFAULT_STRENGTH = T.let(T.unsafe(nil), Float)

# source://ruby-progressbar//lib/ruby-progressbar/refinements/progress_enumerator.rb#2
module ProgressBar::Refinements; end

# source://ruby-progressbar//lib/ruby-progressbar/refinements/progress_enumerator.rb#3
module ProgressBar::Refinements::Enumerator; end

# source://ruby-progressbar//lib/ruby-progressbar/refinements/progress_enumerator.rb#4
ProgressBar::Refinements::Enumerator::ARITY_ERROR_MESSAGE = T.let(T.unsafe(nil), String)

# source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#2
class ProgressBar::Throttle
  # @return [Throttle] a new instance of Throttle
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#8
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#15
  def choke(options = T.unsafe(nil)); end

  # Returns the value of attribute rate.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def rate; end

  # Sets the attribute rate
  #
  # @param value the value to set the attribute rate to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def rate=(_arg0); end

  # Returns the value of attribute started_at.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def started_at; end

  # Sets the attribute started_at
  #
  # @param value the value to set the attribute started_at to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def started_at=(_arg0); end

  # Returns the value of attribute stopped_at.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def stopped_at; end

  # Sets the attribute stopped_at
  #
  # @param value the value to set the attribute stopped_at to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def stopped_at=(_arg0); end

  # Returns the value of attribute timer.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def timer; end

  # Sets the attribute timer
  #
  # @param value the value to set the attribute timer to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/throttle.rb#3
  def timer=(_arg0); end
end

# source://ruby-progressbar//lib/ruby-progressbar/time.rb#3
class ProgressBar::Time
  # @return [Time] a new instance of Time
  #
  # source://ruby-progressbar//lib/ruby-progressbar/time.rb#11
  def initialize(time = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/time.rb#15
  def now; end

  # source://ruby-progressbar//lib/ruby-progressbar/time.rb#19
  def unmocked_time_method; end

  protected

  # Returns the value of attribute time.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/time.rb#27
  def time; end

  # Sets the attribute time
  #
  # @param value the value to set the attribute time to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/time.rb#27
  def time=(_arg0); end
end

# source://ruby-progressbar//lib/ruby-progressbar/time.rb#4
ProgressBar::Time::TIME_MOCKING_LIBRARY_METHODS = T.let(T.unsafe(nil), Array)

# source://ruby-progressbar//lib/ruby-progressbar/timer.rb#4
class ProgressBar::Timer
  # @return [Timer] a new instance of Timer
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#8
  def initialize(options = T.unsafe(nil)); end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#67
  def divide_seconds(seconds); end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#57
  def elapsed_seconds; end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#63
  def elapsed_whole_seconds; end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#31
  def now; end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#23
  def pause; end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#43
  def reset; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#48
  def reset?; end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#52
  def restart; end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#27
  def resume; end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#12
  def start; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#35
  def started?; end

  # Returns the value of attribute started_at.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
  def started_at; end

  # Sets the attribute started_at
  #
  # @param value the value to set the attribute started_at to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
  def started_at=(_arg0); end

  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#17
  def stop; end

  # @return [Boolean]
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#39
  def stopped?; end

  # Returns the value of attribute stopped_at.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
  def stopped_at; end

  # Sets the attribute stopped_at
  #
  # @param value the value to set the attribute stopped_at to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#5
  def stopped_at=(_arg0); end

  protected

  # Returns the value of attribute time.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#76
  def time; end

  # Sets the attribute time
  #
  # @param value the value to set the attribute time to.
  #
  # source://ruby-progressbar//lib/ruby-progressbar/timer.rb#76
  def time=(_arg0); end
end