import { SelectorCallback } from "./types/WrapletDependencyDefinition"; import { Wireable, Wiring } from "./composeWrapletApi"; export declare class NodeManager implements Wireable { private node; private listeners; constructor(node: N); /** * Add a listener to the current node. */ addListener(eventName: string, callback: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean): void; /** * Add a listener to one of the descendants. * * Note: Most of the time it's not recommended to use this * method because it makes a wraplet impure. * * Ideally, wraplet should directly interact only with its * own node. However, you can make a wraplet impure if you * know what you are doing. */ addListenerTo(target: SelectorCallback | string, eventName: string, callback: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean, required?: boolean): void; destroy(): void; wiring(): Wiring; /** * @deprecated * For an existing instance, use `nodeManager.wiring()`. * For lazy wiring, use `lazyWiring`, but note that it evaluates the provider * on the first lifecycle event, which may be initialization. */ static wire(nodeManager: (() => NodeManager | undefined) | NodeManager): Wiring; }