import * as Axe from 'axe-core' ; declare global { interface Window { axe : typeof Axe ; } } export function runAxe ( config ? , context ? , options ? ) { if ( config ) { window . axe . configure ( config ) ; } const brandingConfig = { branding : { application : 'axe-puppeteer' } } ; window . axe . configure ( brandingConfig as Axe . Spec ) ; return window . axe . run ( context || document , options || { } ) ; } export function pageIsLoaded ( ) { return document . readyState === 'complete' ; }