/// import { Member } from "../DataObjects/Member"; import { Node } from "../Node/Node"; import { ChildRelation } from '../Relations/ChildRelation'; import { Cache } from "../Cache/Cache"; import { Identifier } from '../Identifier'; import { Tree } from '../Tree/Tree'; import { Relation } from '../Relation'; import TreeConfig from '../TreeConfig'; export declare class NodeIO { sourceDirectory: string; dataFolder: string; shaclPath: any; writeMetadata: boolean; config: TreeConfig; context: Object | null; /** * Initialize the fragment IO managing object. * @param {string} sourceDirectory - The source directory where all data of this tree is stored. * @param {string} dataFolder - The subfolder of the source directory where the fragments are stored. */ constructor(config: TreeConfig); write_node_batch(nodeArray: Array): void; delete_node(nodeId: string): void; write_node(node: Node): void; read_node(nodeId: string, fc: Cache): any; writeTreeMetadata(tree: Tree): void; static readTree(config: TreeConfig, prototypeObject: any, nodeIOPrototype: any): any; encode_wrapper(encodedNode: any, encodedMembers: any, encodedMembersMetadata: any, totalItems?: number): any; decode_wrapper(wrapper: any): any[]; encode_node(node: Node): any; decode_node(node: any, members: any, membersMetadata: any, fc: Cache): any; encode_member(member: Member): any[]; decode_member(member: any, representation: any): Member; encode_relation(relation: Relation): { "@type": string; "tree:node": { "@id": string; }; "tree:path": string | undefined; "tree:value": any; "tree:remainingItems": number | undefined; }; decode_relation(childRelationObject: any): Relation; getCollectionId(): string; getNodeLocation(nodeId: string): string; getNodeIdFromIdentifier(nodeId: string): string; retrieveNodeIdentifier(nodeId: string, value: any): Identifier; relationToString(relation: ChildRelation): string; stringToRelation(relationString: string): ChildRelation; encode_node_value(a: any): any; encode_tdo_value(a: any): any; decode_node_value(a: any): any; decode_tdo_value(a: any): any; getRootNodeIdentifier(): string; getContext(): { tree: string; hydra: string; geo: string; void: string; } | { constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: string | number | symbol): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: string | number | symbol): boolean; should: Chai.Assertion; tree: string; hydra: string; geo: string; void: string; }; }