export declare function buildCustomEvent<T = undefined>(name: string, detail?: T): CustomEvent<T>;
export declare function listenOnce<K extends keyof HTMLElementEventMap>(element: HTMLElement, type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
export declare function listenOnce(element: HTMLElement, type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
export declare function eventPromise(element: HTMLElement, type: string, timeoutMs?: number): Promise<Event>;
