import { WrapletDependencyMap } from "./types/WrapletDependencyMap"; import { WrapletDependencies } from "./types/WrapletDependencies"; import { Wraplet } from "./types/Wraplet"; import { DependencyManager } from "../DependencyManager/types/DependencyManager"; import { AbstractWraplet, AbstractWrapletWiringArgs } from "./AbstractWraplet"; import { WrapletApi } from "./types/WrapletApi"; import { Wiring } from "./composeWrapletApi"; interface AbstractDependentWrapletWiringArgs extends AbstractWrapletWiringArgs { dependencyManager: (() => DependencyManager) | DependencyManager; } export declare abstract class AbstractDependentWraplet extends AbstractWraplet implements Wraplet { protected dm: DependencyManager; constructor(dm: DependencyManager); protected createWrapletApi(): WrapletApi; protected defaultWrapletApiWiring(): Wiring; /** * Dependencies. */ protected get d(): WrapletDependencies; static wiring(args: AbstractDependentWrapletWiringArgs): Wiring; protected static createDependencyManager(node: N, map: M): DependencyManager; protected static createWraplets(): InstanceType any>; protected static createAndInitializeWraplets(): Promise any>>; /** * Instantiates wraplets on a given ParentNode. * * @param node - The ParentNode to instantiate wraplets on. * @param attribute - The attribute to look for or a function to retrieve nodes. * @param map - The dependency map for the wraplets. * @param additional_args - Additional arguments to pass to the wraplet constructor. * * @returns An array of instantiated wraplets. */ protected static createDependentWraplets AbstractDependentWraplet, PN extends ParentNode>(this: T, node: PN, attribute: string | ((node: PN) => Iterable), map: WrapletDependencyMap, additional_args?: unknown[]): InstanceType[]; /** * Instantiates and initializes wraplets on a given ParentNode. * * @param node - The ParentNode to instantiate wraplets on. * @param attribute - The attribute to look for or a function to retrieve nodes. * @param map - The dependency map for the wraplets. * @param additional_args - Additional arguments to pass to the wraplet constructor. * * @returns An array of instantiated and initialized wraplets. */ protected static createAndInitializeDependentWraplets; }, PN extends ParentNode>(this: T, node: PN, attribute: string | ((node: PN) => Iterable), map: WrapletDependencyMap, additional_args?: unknown[]): Promise[]>; } export {};