import Base import ./inspector_event_value.bend as Getter import ./ordinary_event_family.bend as Provision import ./ordinary_event_declaration.bend as Event import ./event_family_routing.bend as Route import ./event_stream.bend as Leaf import ./capabilities.bend as Cap import ./event_notice_runtime.bend as Mixed # Bind existing generated selection and the same ordinary declaration once. def bind(~S:Data,~C:Type,~R:Type,~P:Data,~E:Data,~F:Type,~take:F -> F & Leaf.Stream,~put:F -> Leaf.Stream -> F,declaration:Event.Declaration,_:Provision.Selection) -> Cap.ValueRead,Maybe<&2,List<&2,E>>>: Getter.read(~S,~C,~R,~P,~E,~F,~take,~put,declaration) # Lift an already generated typed selection through the retained notice owner wrapper. def lift_notice(~S:Data,~E:Data,~P:Data,~F:Type,~H:Type,~take:F -> F & Leaf.Stream,~put:F -> Leaf.Stream -> F,_:Provision.Selection) -> Provision.Selection,Mixed.take(~S,~E,~P,~F,~H,~take),Mixed.put(~S,~E,~P,~F,~H,~put)>:Provision.Selection{}