Module Runtime_chrome_common

class type onInstalledEvent = object ... end
class type runtime = object ... end
val runtime : runtime Js_min.t
val last_error : unit -> Js_min.error Js_min.t
val id : unit -> Js_min.js_string Js_min.t
val getManifest : unit -> 'a Js_min.t
val getURL : string -> string
val reload : unit -> unit
val restart : unit -> unit
val connect : ?⁠id:Js_min.js_string Js_min.t -> ?⁠info:Runtime_utils.connectInfo Js_min.t -> unit -> Runtime_utils.port Js_min.t
val connectNative : string -> Runtime_utils.port Js_min.t
val onStartup : (unit -> unit) -> unit
val onInstalled : (onInstalledEvent Js_min.t -> unit) -> unit
val onSuspend : (unit -> unit) -> unit
val onSuspendCanceled : (unit -> unit) -> unit
val onUpdateAvailabale : ('a Js_min.t -> unit) -> unit
val onConnect : (Runtime_utils.port Js_min.t -> unit) -> unit
val onConnectExternal : (Runtime_utils.port Js_min.t -> unit) -> unit
val onConnectNative : (Runtime_utils.port Js_min.t -> unit) -> unit
val onMessage : ('a Js_min.t -> Runtime_utils.messageSender Js_min.t -> ('b Js_min.t -> bool Js_min.t) -> unit) -> unit
val onMessageExternal : ('a Js_min.t -> Runtime_utils.messageSender Js_min.t -> ('a Js_min.t -> bool Js_min.t) -> unit) -> unit
val onRestartRequired : (Js_min.js_string Js_min.t -> unit) -> unit