package webextension_polyfill.events; /** An object which allows the addition and removal of listeners for a Chrome event. **/ typedef Event = { /** Registers an event listener callback to an event. **/ function addListener(callback:T, params:haxe.extern.Rest):Void; /** Deregisters an event listener callback from an event. **/ function removeListener(callback:T):Void; function hasListener(callback:T):Bool; function hasListeners():Bool; };