interface StreamHandlerFunction ((stream) => Promise<void>)