import { PreConnectHost } from './pre-connect-host.ts'; type EventMap = HTMLElementEventMap; type AddEventOptions = boolean | AddEventListenerOptions; type EventOptions = boolean | EventListenerOptions; type Listener = EventListener | EventListenerObject; export declare class DisposingEventHost extends PreConnectHost { #private; /** * Called when the element is disconnected from the DOM. */ protected disconnected(): void; addEventListener(type: K, listener: (this: HTMLElement, ev: EventMap[K]) => any, options?: AddEventOptions): void; addEventListener(type: string, listener: Listener, options?: AddEventOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: EventMap[K]) => any, options?: EventOptions): void; removeEventListener(type: string, listener: Listener, options?: EventOptions): void; /** Remove any listeners added directly to the host. */ removeAllEventListeners(): void; } export {}; //# sourceMappingURL=auto-disposing-event-host.d.ts.map