Cookie banner API

Cookie banner API

The cookie banner is configurable to show "Decline" button in the rendered banner.

What does the decline button do?

Is there a way to hook into it with API, so I could execute my own logic if the user declines?