Messages events

hi, is there a way to intercept the email sending event? for example if I want to intercept a new email received, I use “browser.messages.onNewMailReceived.addListener”. Is there a corresponding function for the email sent?

browser.compose.onBeforeSend.addListener