AS7341 flicker/GPIO/INT integration

esphome beginner
AS7341sensor
The sensor has flicker detection.
how can you use it in esphome -home assistant
GPIO/INT integration would also be nice for the full functions