pub fn add_event_listener(
type_: String,
listener: fn(Event) -> Nil,
) -> Nil
pub fn alert(a: String) -> Nil
pub fn cancel_animation_frame(request_id: RequestID) -> Nil
pub fn close(window: Window) -> Bool
pub fn closed(window: Window) -> Bool
pub fn eval(source: String) -> Result(Dynamic, String)
pub fn focus(window: Window) -> Nil
pub fn get_hash() -> Result(String, Nil)
pub fn get_search() -> Result(String, Nil)
pub fn import_(
source: String,
) -> Promise(Result(Dynamic, String))
pub fn inner_height(window: Window) -> Int
pub fn inner_width(window: Window) -> Int
pub fn location() -> String
pub fn location_of(window: Window) -> Result(String, String)
pub fn on_message(worker: Window, handle: fn(Json) -> Nil) -> Nil
pub fn open(
url: String,
name: String,
features: String,
) -> Result(Window, String)
pub fn outer_height(window: Window) -> Int
pub fn outer_width(window: Window) -> Int
pub fn queue_microtask(callback: fn() -> Nil) -> Nil
pub fn reload_of(window: Window) -> Nil
pub fn request_animation_frame(
callback: fn(Float) -> Nil,
) -> RequestID
pub fn request_wake_lock() -> Promise(
Result(WakeLockSentinal, Nil),
)
pub fn screen_left(window: Window) -> Int
pub fn screen_top(window: Window) -> Int
pub fn screen_x(window: Window) -> Int
pub fn screen_y(window: Window) -> Int
pub fn scroll_x(window: Window) -> Int
pub fn scroll_y(window: Window) -> Int
pub fn set_location(window: Window, url: String) -> Nil