declare global { interface Window { _paq : Array < [ 'trackEvent' , string , string ] | [ 'trackEvent' , string , string , string ] | [ 'trackEvent' , string , string , string , number ] > ; } } export function trackEvent ( category , action ) ; export function trackEvent ( category , action , language ) ; export function trackEvent ( category , action ) ; export function trackEvent ( category , action , page ) ; export function trackEvent ( category , action ) ; export function trackEvent ( category , action , eventName ? , value ? ) { if ( value && eventName ) { window . _paq . push ( [ 'trackEvent' , category , action , eventName , value ] ) ; } else if ( eventName ) { window . _paq . push ( [ 'trackEvent' , category , action , eventName ] ) ; } else { window . _paq . push ( [ 'trackEvent' , category , action ] ) ; } }