MemoryNodeHelper: {
    attachedPrivateModules: (
        node: NodeInstance,
        maxDepth?: number,
    ) => Promise<ModuleInstance[]>;
    attachedPublicModules: (
        node: NodeInstance,
        maxDepth?: number,
    ) => Promise<ModuleInstance[]>;
    attachToExistingNode: (
        source: NodeInstance,
        id: ModuleIdentifier,
        destination: NodeInstance,
    ) => Promise<NodeInstance>;
    attachToNewNode: (
        source: NodeInstance,
        id: ModuleIdentifier,
        destinationParams?: MemoryNodeParams,
    ) => Promise<NodeInstance>;
    flatAttachAllToExistingNode: (
        source: NodeInstance,
        destination: NodeInstance,
    ) => Promise<NodeInstance>;
    flatAttachChildToExistingNode: (
        source: NodeInstance,
        id: ModuleIdentifier,
        destination: NodeInstance,
    ) => Promise<NodeInstance>;
    flatAttachToExistingNode: (
        source: NodeInstance,
        id: ModuleIdentifier,
        destination: NodeInstance,
    ) => Promise<NodeInstance>;
    flatAttachToNewNode: (
        source: NodeInstance,
        id: ModuleIdentifier,
        destinationParams: MemoryNodeParams,
    ) => Promise<NodeInstance>;
}

Type declaration