(**
 * Copyright (c) 2018-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *)

val type_at_pos :
  options:Options.t ->
  workers:Worker.t list option ->
  env:ServerEnv.env ref ->
  profiling:Profiling_js.running ->
  File_key.t ->
  string ->
  int ->
  int ->
  ((Loc.t * string option * Reason.reason list) * Hh_json.json option,
    string * Hh_json.json option) Core_result.t

val dump_types :
  options:Options.t ->
  workers:Worker.t list option ->
  env:ServerEnv.env ref ->
  profiling:Profiling_js.running ->
  File_key.t ->
  string ->
  ((Loc.t * string * string * Reason.reason list) list, string) Core_result.t

val coverage :
  options:Options.t ->
  workers:Worker.t list option ->
  env:ServerEnv.env ref ->
  profiling:Profiling_js.running ->
  force:bool ->
  File_key.t ->
  string -> ((Loc.t * bool) list, string) Core_result.t

val suggest :
  options:Options.t ->
  workers:Worker.t list option ->
  env:ServerEnv.env ref ->
  profiling:Profiling_js.running ->
  File_key.t ->
  string list ->
  string -> ((int * int * string) list, string) Core_result.t
