import { SelectionSet } from "@apollo/federation-internals"; import { OpGraphPath, OpTrigger, ContextAtUsageEntry } from "./graphPath"; import { Edge, QueryGraph, RootVertex, Vertex } from "./querygraph"; export declare class PathTree { readonly graph: QueryGraph; readonly vertex: RV; readonly localSelections: readonly SelectionSet[] | undefined; private readonly triggerEquality; private readonly childs; private constructor(); static create(graph: QueryGraph, root: RV, triggerEquality: (t1: TTrigger, t2: TTrigger) => boolean): PathTree; static createOp(graph: QueryGraph, root: RV): OpPathTree; static createFromOpPaths(graph: QueryGraph, root: RV, paths: { path: OpGraphPath; selection?: SelectionSet; }[]): OpPathTree; private static createFromPaths; childCount(): number; isLeaf(): boolean; childElements(reverseOrder?: boolean): Generator<[Edge | TNullEdge, TTrigger, OpPathTree | null, PathTree, Set | null, Map | null], void, undefined>; private element; private mergeChilds; mergeIfNotEqual(other: PathTree): PathTree; private mergeLocalSelectionsWith; merge(other: PathTree): PathTree; private equalsSameRoot; private static parameterToContextEquals; concat(other: PathTree): PathTree; private findIndex; isAllInSameSubgraph(): boolean; private isAllInSameSubgraphInternal; toString(indent?: string, includeConditions?: boolean): string; private toStringInternal; } export type RootPathTree = PathTree; export type OpPathTree = PathTree; export type OpRootPathTree = OpPathTree; export declare function isRootPathTree(tree: OpPathTree): tree is OpRootPathTree; export declare function traversePathTree(pathTree: PathTree, onEdges: (edge: Edge) => void): void; //# sourceMappingURL=pathTree.d.ts.map