package foo:foo; interface types { resource request { foo: func(); bar: func(arg: list); } resource response { foo: func(); bar: func(arg: list); } } interface handler { use types.{request, response}; handle: func(some: borrow) -> response; handle-owned: func(some: own) -> own; } world proxy { import handler; export handler; }