/** * dispatch a CustomEvent from the host element which bubbles and is composed * @category Events * @param host the host element * @param event the event name * @param detail the CustomEvent detail * @param init CustomEventInit options to override the defaults (bubbles, composed) * @returns void */ export declare function emit(host: Element, event: string, detail?: T, init?: CustomEventInit): void; /** * wrap an event handler to stop propagation * @category Events * @param handler - the event handler to wrap * @returns a new event handler that stops propagation */ export declare const stop: (handler: (host: H, e: CustomEvent) => void) => (host: H & HTMLElement, e: CustomEvent) => void; /** * wrap an event handler to prevent the default action * @category Events * @param handler - the event handler to wrap * @returns a new event handler that prevents the default action */ export declare const prevent: (handler: (host: H, e: CustomEvent) => void) => (host: H & HTMLElement, e: CustomEvent) => void;