# DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `listen` gem. # Please instead update this file by running `bin/tapioca sync`. # typed: true module Listen class << self def logger; end def logger=(_arg0); end def stop; end def to(*args, &block); end private def default_logger; end end end module Listen::Adapter class << self def select(options = T.unsafe(nil)); end private def _usable_adapter_class; end def _warn_polling_fallback(options); end end end class Listen::Adapter::BSD < ::Listen::Adapter::Base private def _change(event_flags); end def _configure(directory, &callback); end def _event_path(event); end def _find(*paths, &block); end def _process_event(dir, event); end def _run; end def _watch_file(path, queue); end def _watch_for_new_file(event); end class << self def usable?; end end end Listen::Adapter::BSD::BUNDLER_DECLARE_GEM = T.let(T.unsafe(nil), String) Listen::Adapter::BSD::DEFAULTS = T.let(T.unsafe(nil), Hash) Listen::Adapter::BSD::OS_REGEXP = T.let(T.unsafe(nil), Regexp) class Listen::Adapter::Base def initialize(config); end def config; end def configure; end def options; end def start; end def started?; end def stop; end private def _log_exception(msg, caller_stack); end def _queue_change(type, dir, rel_path, options); end def _stop; end def _timed(title); end class << self def usable?; end end end Listen::Adapter::Base::DEFAULTS = T.let(T.unsafe(nil), Hash) class Listen::Adapter::Config def initialize(directories, queue, silencer, adapter_options); end def adapter_options; end def directories; end def queue; end def silencer; end end class Listen::Adapter::Darwin < ::Listen::Adapter::Base private def _configure(dir, &callback); end def _process_changes(dirs); end def _process_event(dir, path); end def _run; end def _stop; end class << self def usable?; end end end Listen::Adapter::Darwin::DEFAULTS = T.let(T.unsafe(nil), Hash) Listen::Adapter::Darwin::INCOMPATIBLE_GEM_VERSION = T.let(T.unsafe(nil), String) Listen::Adapter::Darwin::OS_REGEXP = T.let(T.unsafe(nil), Regexp) class Listen::Adapter::Linux < ::Listen::Adapter::Base private def _change(event_flags); end def _configure(directory, &callback); end def _dir_event?(event); end def _process_event(dir, event); end def _run; end def _skip_event?(event); end def _stop; end end Listen::Adapter::Linux::DEFAULTS = T.let(T.unsafe(nil), Hash) Listen::Adapter::Linux::OS_REGEXP = T.let(T.unsafe(nil), Regexp) Listen::Adapter::Linux::README_URL = T.let(T.unsafe(nil), String) Listen::Adapter::OPTIMIZED_ADAPTERS = T.let(T.unsafe(nil), Array) Listen::Adapter::POLLING_FALLBACK_MESSAGE = T.let(T.unsafe(nil), String) class Listen::Adapter::Polling < ::Listen::Adapter::Base private def _configure(_, &callback); end def _process_event(dir, _); end def _run; end end Listen::Adapter::Polling::DEFAULTS = T.let(T.unsafe(nil), Hash) Listen::Adapter::Polling::OS_REGEXP = T.let(T.unsafe(nil), Regexp) class Listen::Adapter::Windows < ::Listen::Adapter::Base private def _change(type); end def _configure(dir); end def _process_event(dir, event); end def _run; end class << self def usable?; end end end Listen::Adapter::Windows::BUNDLER_DECLARE_GEM = T.let(T.unsafe(nil), String) Listen::Adapter::Windows::OS_REGEXP = T.let(T.unsafe(nil), Regexp) class Listen::Backend extend ::Forwardable def initialize(directories, queue, silencer, config); end def min_delay_between_events; end def start(*args, &block); end def stop(*args, &block); end private def adapter; end end class Listen::Change def initialize(config, record); end def invalidate(type, rel_path, options); end def record; end end class Listen::Change::Config def initialize(queue, silencer); end def queue(*args); end def silenced?(path, type); end end class Listen::Directory class << self def _async_changes(snapshot, path, previous, options); end def _change(snapshot, type, path, options); end def _children(path); end def ascendant_of?(base, other); end def scan(snapshot, rel_path, options); end end end class Listen::Error < ::RuntimeError; end class Listen::Error::INotifyMaxWatchesExceeded < ::Listen::Error; end class Listen::Error::NotStarted < ::Listen::Error; end class Listen::Error::SymlinkLoop < ::Listen::Error; end module Listen::Event; end class Listen::Event::Config def initialize(listener, event_queue, queue_optimizer, wait_for_delay, &block); end def call(*args); end def callable?; end def event_queue; end def listener; end def min_delay_between_events; end def optimize_changes(changes); end def sleep(seconds); end end class Listen::Event::Loop include ::Listen::FSM extend ::Listen::FSM::ClassMethods def initialize(config); end def pause; end def start; end def started?; end def stop; end def stopped?; end def wakeup_on_event; end private def _process_changes; end def _wakeup(reason); end end Listen::Event::Loop::Error = Listen::Error Listen::Event::Loop::MAX_STARTUP_SECONDS = T.let(T.unsafe(nil), Float) Listen::Event::Loop::NotStarted = Listen::Error::NotStarted class Listen::Event::Processor def initialize(config, reasons); end def loop_for(latency); end private def _check_stopped; end def _deadline; end def _flush_wakeup_reasons; end def _process_changes(event); end def _remember_time_of_first_unprocessed_event; end def _reset_no_unprocessed_events; end def _sleep(seconds); end def _wait_until_events; end def _wait_until_events_calm_down; end def _wait_until_no_longer_paused; end def config; end end class Listen::Event::Processor::Stopped < ::RuntimeError; end class Listen::Event::Queue extend ::Forwardable def initialize(config); end def <<(args); end def close(*args, &block); end def empty?(*args, &block); end def pop(*args, &block); end private def _safe_relative_from_cwd(dir); end end class Listen::Event::Queue::Config def initialize(relative); end def relative?; end end module Listen::FSM mixes_in_class_methods ::Listen::FSM::ClassMethods def initialize_fsm; end def state; end def wait_for_state(*wait_for_states, timeout: T.unsafe(nil)); end private def current_state; end def transition(new_state_name); end def transition!(new_state_name); end def transition_with_callbacks!(new_state); end def validate_and_sanitize_new_state(new_state_name); end class << self def included(klass); end end end module Listen::FSM::ClassMethods def start_state(new_start_state = T.unsafe(nil)); end def state(state_name, to: T.unsafe(nil), &block); end def states; end end class Listen::FSM::State def initialize(name, transitions, &block); end def call(obj); end def name; end def transitions; end def valid_transition?(new_state); end end class Listen::File class << self def change(record, rel_path); end def inaccurate_mac_time?(stat); end end end class Listen::Listener include ::Listen::FSM extend ::Listen::FSM::ClassMethods def initialize(*dirs, &block); end def ignore(regexps); end def ignore!(regexps); end def only(regexps); end def pause; end def paused?; end def processing?; end def start; end def stop; end def stopped?; end end class Listen::Listener::Config def initialize(opts); end def adapter_instance_options(klass); end def adapter_select_options; end def min_delay_between_events; end def relative?; end def silencer_rules; end end Listen::Listener::Config::DEFAULTS = T.let(T.unsafe(nil), Hash) module Listen::MonotonicTime class << self def now; end end end class Listen::Options def initialize(opts, defaults); end def method_missing(name, *_); end private def respond_to_missing?(name, *_); end end class Listen::QueueOptimizer def initialize(config); end def smoosh_changes(changes); end private def _calculate_add_remove_difference(actions, path, default_if_exists); end def _logical_action_for(path, actions); end def _reinterpret_related_changes(cookies); end def _squash_changes(changes); end def config; end def editor_modified?(changes); end end class Listen::QueueOptimizer::Config def initialize(adapter_class, silencer); end def debug(*args, &block); end def exist?(path); end def silenced?(path, type); end end class Listen::Record def initialize(directory, silencer); end def add_dir(rel_path); end def build; end def dir_entries(rel_path); end def file_data(rel_path); end def root; end def unset_path(rel_path); end def update_file(rel_path, data); end private def _auto_hash; end def _fast_build_dir(remaining, symlink_detector); end def _fast_try_file(entry); end def _fast_unset_path(dirname, basename); end def _fast_update_file(dirname, basename, data); end end class Listen::Record::Entry def initialize(root, relative, name = T.unsafe(nil)); end def children; end def meta; end def name; end def real_path; end def record_dir_key; end def relative; end def root; end def sys_path; end private def _entries(dir); end def _join; end end class Listen::Record::SymlinkDetector def initialize; end def verify_unwatched!(entry); end private def _fail(symlinked, real_path); end end Listen::Record::SymlinkDetector::Error = Listen::Error Listen::Record::SymlinkDetector::README_URL = T.let(T.unsafe(nil), String) Listen::Record::SymlinkDetector::SYMLINK_LOOP_ERROR = T.let(T.unsafe(nil), String) class Listen::Silencer def initialize(**options); end def configure(options); end def ignore_patterns; end def ignore_patterns=(_arg0); end def only_patterns; end def only_patterns=(_arg0); end def silenced?(relative_path, type); end private def _ignore?(path); end def _init_ignores(ignores, overrides); end def _only?(path); end end class Listen::Silencer::Controller def initialize(silencer, default_options); end def append_ignores(*regexps); end def replace_with_bang_ignores(regexps); end def replace_with_only(regexps); end private def _reconfigure_silencer(extra_options); end end Listen::Silencer::DEFAULT_IGNORED_DIRECTORIES = T.let(T.unsafe(nil), Regexp) Listen::Silencer::DEFAULT_IGNORED_EXTENSIONS = T.let(T.unsafe(nil), Regexp) module Listen::Thread class << self def new(name, &block); end def rescue_and_log(method_name, *args, caller_stack: T.unsafe(nil)); end private def _exception_with_causes(exception); end def _log_exception(exception, thread_name, caller_stack: T.unsafe(nil)); end end end Listen::VERSION = T.let(T.unsafe(nil), String)