Module Runtime_browser_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 connect : ?⁠id:Js_min.js_string Js_min.t -> ?⁠info:'a Js_min.t -> unit -> 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 onMessage : ('a Js_min.t -> Js_min.js_string Js_min.t -> ('a Js_min.t -> bool Js_min.t) Js_min.callback -> unit) -> unit
val onMessageExternal : ('a Js_min.t -> Js_min.js_string Js_min.t -> ('a Js_min.t -> bool Js_min.t) Js_min.callback -> unit) -> unit
val onRestartRequired : (Js_min.js_string Js_min.t -> unit) -> unit