import { Node as DeliveryNode } from 'contensis-delivery-api'; import { Node } from 'contensis-management-api'; import ContensisRepository from '../repositories/ContensisRepository'; import { MigrateStatus } from '../models/Migration'; import { BuildNodeOptions, MigrateNodeModel } from '../models/Nodes'; /** * Build a complete node specifically for the target repository, providing * context of source and target repositories we can transform a given source node * into a migration-ready node structure checking dependencies and setting * migration status appropriately * * Output the node as JSON for loading into the Management API using the `toJSON` method */ export declare class NodeBuilder implements MigrateNodeModel { #private; contensis: ContensisRepository; source: ContensisRepository; sourceNode: DeliveryNode; isAncestorNode: boolean; existing?: DeliveryNode; node: Node | DeliveryNode; status: MigrateStatus; error?: MappedError; diff?: string; isRootNode: boolean; isRootChild: boolean; rootNodeId: string; existingAtPath?: DeliveryNode; get contentTypeId(): string | undefined; get displayName(): string; get entryId(): any; get id(): string; get originalId(): string; get parentId(): string | undefined; get path(): string; constructor(contensis: ContensisRepository, source: ContensisRepository, sourceNode: DeliveryNode, { onError }: BuildNodeOptions, isAncestorNode?: boolean); /** * Return the node as JSON for API operations */ toJSON: () => Node | DeliveryNode; }