Stored procedure with output parameters in a named query

Can you execute a stored procedure which sets an output parameter from a named query? I don’t see anything in the documentation that would explain how to do so.

It’s easy enough to excecute the stored procedure through the system.db functions, but I would like to stick with named queries as much as possible.

What would the named query execution engine do with it? It doesn’t have any mechanism to return anything but a dataset for queries or a modify count or primary key for updates.