import { directive } from 'lit/async-directive.js'; /** * Listens on a shadow root for events from the elements of that root that match `selector`. The handler * receives the event and the matched element. Returns a function that removes the listener. */ export declare function listenInShadow(root: ShadowRoot | HTMLElement, type: string, selector: string, handler: (event: E, matched: HTMLElement) => void, options?: AddEventListenerOptions): () => void; /** * An event handler for an element in a shadow tree, heard on that tree's root instead of on the element: * `
` in place of `@click=${this.open}`. Handlers run in * bubbling order and `stopPropagation()` stops the ones further out, as with element listeners. The handler * gets the element as its second argument and the component as `this`. A `null` or `undefined` handler listens to * nothing, as with `@click=${undefined}`. */ export declare const delegate: (type: string, handler: ((event: E, element: HTMLElement) => void) | null | undefined) => ReturnType>;