Sometimes, it's useful to know what the "pagelist" number of the current page is. The header and footer Index page fields have {{{PAGENUM}}} that's interpolated server-side, but sometimes it's useful to know what it is without that. For example, scripts that want to replace or format the header/footer can use the number rather than trying to parse it out of the wikitext on a page-by-page basis (or loading the Index page and parsing it out of that HTML).
Is it possible for the extension to set a variable or something so this can be retrieved in JS with something like mw.config.get("prpPageNum"), since the server clearly know what it is, as it's interpolating the {{{PAGENUM}}} text for the page?
prpPageQuality is already in the mw.config object.