package weft:app@0.1.0; interface notify { ready: func(); } interface ipc { send: func(payload: string) -> result<_, string>; recv: func() -> option; } interface fetch { record response { status: u16, content-type: string, body: list, } fetch: func( url: string, method: string, headers: list>, body: option>, ) -> result; } interface notifications { notify: func( title: string, body: string, icon: option, ) -> result<_, string>; } interface clipboard { read: func() -> result; write: func(text: string) -> result<_, string>; }