It depends on what you want to customize. Note that summary reports are exported from the HTML of the page (not from database data directly), so in general you may customize the export class and override the loadHtml() method to manipulate the HTML. Also read Customizing Export (v2021).