function waitEventimport { waitEvent } from "https://deno.land/x/yxz@0.32.0/async/event.ts"; waitEvent(target: EventTarget,event: string,options?: { timeout?: number; },)Parameterstarget: EventTargetevent: stringoptionaloptions: { timeout?: number; }