export default function triggerEvent(el: EventTarget, type: string, detail?: unknown): boolean;