Added typehinting for setupPaginationEnvironment()