How does the pagination and filters work in Bricks?

Hello, I recently got hooked on building a plugin for Bricks that lets me (and hopefully soon others) pull data from many external data sources directly into Bricks editor.

I’ve successfully pieced together information from this forum and lurked in the code regarding how to put it together so far. Naturally, this could use filtering and pagination, which is probably more advanced, so I just wanted to ask around, if maybe someone knows how it works “under the hood” so that I could implement it in my solution, hopefully even by leveraging the Bricks’ native way of doing it, as I’ve been doing so far with the Query loops.

I’m bumping this, I’d love to work on this