tree-multimap-typed 2.5.2 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/types/data-structures/binary-tree/avl-tree.d.ts +50 -2
  2. package/dist/types/data-structures/binary-tree/binary-indexed-tree.d.ts +56 -0
  3. package/dist/types/data-structures/binary-tree/binary-tree.d.ts +116 -15
  4. package/dist/types/data-structures/binary-tree/bst.d.ts +99 -3
  5. package/dist/types/data-structures/binary-tree/red-black-tree.d.ts +79 -8
  6. package/dist/types/data-structures/binary-tree/segment-tree.d.ts +24 -0
  7. package/dist/types/data-structures/binary-tree/tree-map.d.ts +520 -1
  8. package/dist/types/data-structures/binary-tree/tree-multi-map.d.ts +489 -1
  9. package/dist/types/data-structures/binary-tree/tree-multi-set.d.ts +393 -1
  10. package/dist/types/data-structures/binary-tree/tree-set.d.ts +500 -1
  11. package/dist/types/data-structures/graph/directed-graph.d.ts +40 -0
  12. package/dist/types/data-structures/graph/undirected-graph.d.ts +36 -0
  13. package/dist/types/data-structures/hash/hash-map.d.ts +51 -6
  14. package/dist/types/data-structures/heap/heap.d.ts +98 -12
  15. package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +75 -0
  16. package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +61 -1
  17. package/dist/types/data-structures/linked-list/skip-linked-list.d.ts +72 -0
  18. package/dist/types/data-structures/matrix/matrix.d.ts +32 -0
  19. package/dist/types/data-structures/queue/deque.d.ts +82 -0
  20. package/dist/types/data-structures/queue/queue.d.ts +61 -0
  21. package/dist/types/data-structures/stack/stack.d.ts +42 -2
  22. package/dist/types/data-structures/trie/trie.d.ts +48 -0
  23. package/dist/types/interfaces/binary-tree.d.ts +2 -3
  24. package/dist/umd/tree-multimap-typed.js +3105 -185
  25. package/dist/umd/tree-multimap-typed.js.map +1 -1
  26. package/dist/umd/tree-multimap-typed.min.js +3 -3
  27. package/dist/umd/tree-multimap-typed.min.js.map +1 -1
  28. package/package.json +2 -2
  29. package/src/data-structures/binary-tree/avl-tree.ts +52 -5
  30. package/src/data-structures/binary-tree/binary-indexed-tree.ts +56 -0
  31. package/src/data-structures/binary-tree/binary-tree.ts +167 -81
  32. package/src/data-structures/binary-tree/bst.ts +101 -7
  33. package/src/data-structures/binary-tree/red-black-tree.ts +82 -15
  34. package/src/data-structures/binary-tree/segment-tree.ts +24 -0
  35. package/src/data-structures/binary-tree/tree-map.ts +540 -3
  36. package/src/data-structures/binary-tree/tree-multi-map.ts +490 -2
  37. package/src/data-structures/binary-tree/tree-multi-set.ts +393 -1
  38. package/src/data-structures/binary-tree/tree-set.ts +520 -3
  39. package/src/data-structures/graph/directed-graph.ts +41 -1
  40. package/src/data-structures/graph/undirected-graph.ts +37 -1
  41. package/src/data-structures/hash/hash-map.ts +67 -12
  42. package/src/data-structures/heap/heap.ts +107 -19
  43. package/src/data-structures/linked-list/doubly-linked-list.ts +88 -0
  44. package/src/data-structures/linked-list/singly-linked-list.ts +61 -1
  45. package/src/data-structures/linked-list/skip-linked-list.ts +72 -0
  46. package/src/data-structures/matrix/matrix.ts +32 -0
  47. package/src/data-structures/queue/deque.ts +85 -0
  48. package/src/data-structures/queue/queue.ts +73 -0
  49. package/src/data-structures/stack/stack.ts +45 -5
  50. package/src/data-structures/trie/trie.ts +48 -0
  51. package/src/interfaces/binary-tree.ts +1 -9
@@ -6,7 +6,7 @@
6
6
  * @license MIT License
7
7
  */
8
8
  import { BST } from './bst';
9
- import type { AVLTreeOptions, BinaryTreeDeleteResult, BinaryTreeOptions, BSTNOptKeyOrNode, EntryCallback, FamilyPosition, IterationType, RBTNColor } from '../../types';
9
+ import type { AVLTreeOptions, BinaryTreeOptions, BSTNOptKeyOrNode, EntryCallback, FamilyPosition, IterationType, RBTNColor } from '../../types';
10
10
  import { IBinaryTree } from '../../interfaces';
11
11
  /**
12
12
  * Represents a Node in an AVL (Adelson-Velsky and Landis) Tree.
@@ -382,6 +382,22 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
382
382
 
383
383
 
384
384
 
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
385
401
 
386
402
 
387
403
 
@@ -505,6 +521,18 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
505
521
 
506
522
 
507
523
 
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
508
536
 
509
537
 
510
538
 
@@ -525,7 +553,7 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
525
553
  * console.log(avl.has(3)); // false;
526
554
  * console.log(avl.size); // 6;
527
555
  */
528
- delete(keyNodeOrEntry: K | AVLTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined): BinaryTreeDeleteResult<AVLTreeNode<K, V>>[];
556
+ delete(keyNodeOrEntry: K | AVLTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined): boolean;
529
557
  /**
530
558
  * Rebuilds the tree to be perfectly balanced.
531
559
  * @remarks AVL trees are already height-balanced, but this makes them *perfectly* balanced (minimal height and all leaves at N or N-1).
@@ -584,6 +612,14 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
584
612
 
585
613
 
586
614
 
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
587
623
 
588
624
 
589
625
 
@@ -695,6 +731,18 @@ export declare class AVLTree<K = any, V = any, R = any> extends BST<K, V, R> imp
695
731
 
696
732
 
697
733
 
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
698
746
 
699
747
 
700
748
 
@@ -82,6 +82,14 @@ export declare class BinaryIndexedTree implements Iterable<number> {
82
82
 
83
83
 
84
84
 
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
85
93
 
86
94
 
87
95
 
@@ -155,6 +163,14 @@ export declare class BinaryIndexedTree implements Iterable<number> {
155
163
 
156
164
 
157
165
 
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
158
174
 
159
175
 
160
176
 
@@ -227,6 +243,14 @@ export declare class BinaryIndexedTree implements Iterable<number> {
227
243
 
228
244
 
229
245
 
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
230
254
 
231
255
 
232
256
 
@@ -300,6 +324,14 @@ export declare class BinaryIndexedTree implements Iterable<number> {
300
324
 
301
325
 
302
326
 
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
303
335
 
304
336
 
305
337
 
@@ -371,6 +403,14 @@ export declare class BinaryIndexedTree implements Iterable<number> {
371
403
 
372
404
 
373
405
 
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
374
414
 
375
415
 
376
416
 
@@ -445,6 +485,14 @@ export declare class BinaryIndexedTree implements Iterable<number> {
445
485
 
446
486
 
447
487
 
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
448
496
 
449
497
 
450
498
 
@@ -487,6 +535,10 @@ export declare class BinaryIndexedTree implements Iterable<number> {
487
535
 
488
536
 
489
537
 
538
+
539
+
540
+
541
+
490
542
 
491
543
 
492
544
 
@@ -527,6 +579,10 @@ export declare class BinaryIndexedTree implements Iterable<number> {
527
579
 
528
580
 
529
581
 
582
+
583
+
584
+
585
+
530
586
 
531
587
 
532
588
 
@@ -136,7 +136,7 @@ export declare class BinaryTreeNode<K = any, V = any> {
136
136
  * node?: BinaryTreeNode<string> | null,
137
137
  * conditions?: { [key: string]: boolean }
138
138
  * ): string {
139
- * if (!node) raise(Error, 'Invalid node');
139
+ * if (!node) throw new Error('Invalid node');
140
140
  *
141
141
  * // If it's a leaf node, return the decision result
142
142
  * if (!node.left && !node.right) return node.key;
@@ -181,7 +181,7 @@ export declare class BinaryTreeNode<K = any, V = any> {
181
181
  * case '/':
182
182
  * return rightValue !== 0 ? leftValue / rightValue : 0; // Handle division by zero
183
183
  * default:
184
- * raise(Error, `Unsupported operator: ${node.key}`);
184
+ * throw new Error(`Unsupported operator: ${node.key}`);
185
185
  * }
186
186
  * }
187
187
  *
@@ -353,7 +353,7 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
353
353
  isValidKey(key: unknown): key is K;
354
354
  /**
355
355
  * Adds a new node to the tree.
356
- * @remarks Time O(log N), For BST, Red-Black Tree, and AVL Tree subclasses, the worst-case time is O(log N). This implementation adds the node at the first available position in a level-order (BFS) traversal. This is NOT a Binary Search Tree insertion. Time O(N), where N is the number of nodes. It must traverse level-by-level to find an empty slot. Space O(N) in the worst case for the BFS queue (e.g., a full last level).
356
+ * @remarks Time O(N) level-order traversal to find an empty slot. Space O(N) for the BFS queue. BST/Red-Black Tree/AVL Tree subclasses override to O(log N).
357
357
  *
358
358
  * @param keyNodeOrEntry - The key, node, or entry to add.
359
359
  * @returns True if the addition was successful, false otherwise.
@@ -382,6 +382,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
382
382
 
383
383
 
384
384
 
385
+
386
+
387
+
388
+
385
389
 
386
390
 
387
391
 
@@ -399,7 +403,7 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
399
403
  add(keyNodeOrEntry: K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined): boolean;
400
404
  /**
401
405
  * Adds or updates a new node to the tree.
402
- * @remarks Time O(log N), For BST, Red-Black Tree, and AVL Tree subclasses, the worst-case time is O(log N). This implementation sets the node at the first available position in a level-order (BFS) traversal. This is NOT a Binary Search Tree insertion. Time O(N), where N is the number of nodes. It must traverse level-by-level to find an empty slot. Space O(N) in the worst case for the BFS queue (e.g., a full last level).
406
+ * @remarks Time O(N) level-order traversal to find an empty slot. Space O(N) for the BFS queue. BST/Red-Black Tree/AVL Tree subclasses override to O(log N).
403
407
  *
404
408
  * @param keyNodeOrEntry - The key, node, or entry to set or update.
405
409
  * @param [value] - The value, if providing just a key.
@@ -434,6 +438,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
434
438
 
435
439
 
436
440
 
441
+
442
+
443
+
444
+
437
445
 
438
446
 
439
447
 
@@ -498,6 +506,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
498
506
 
499
507
 
500
508
 
509
+
510
+
511
+
512
+
501
513
 
502
514
 
503
515
 
@@ -538,6 +550,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
538
550
 
539
551
 
540
552
 
553
+
554
+
555
+
556
+
541
557
 
542
558
 
543
559
 
@@ -583,6 +599,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
583
599
 
584
600
 
585
601
 
602
+
603
+
604
+
605
+
586
606
 
587
607
 
588
608
 
@@ -597,19 +617,24 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
597
617
  */
598
618
  merge(anotherTree: BinaryTree<K, V, R>): void;
599
619
  /**
600
- * Clears the tree and refills it with new items.
601
- * @remarks Time O(N) (for `clear`) + O(N * M) (for `setMany`) = O(N * M). Space O(M) (from `setMany`).
620
+ * Deletes a node from the tree (internal, returns balancing metadata).
621
+ * @remarks Time O(N) O(N) to find the node + O(H) for predecessor swap. Space O(1). BST/Red-Black Tree/AVL Tree subclasses override to O(log N).
622
+ * @internal Used by AVL/BST subclasses that need balancing metadata after deletion.
602
623
  *
603
- * @param keysNodesEntriesOrRaws - An iterable of items to set.
604
- * @param [values] - An optional parallel iterable of values.
624
+ * @param keyNodeEntryRawOrPredicate - The node to delete.
625
+ * @returns An array containing deletion results with balancing metadata.
605
626
  */
606
- refill(keysNodesEntriesOrRaws: Iterable<K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined | R>, values?: Iterable<V | undefined>): void;
627
+ protected _deleteInternal(keyNodeEntryRawOrPredicate: BTNRep<K, V, BinaryTreeNode<K, V>> | NodePredicate<BinaryTreeNode<K, V> | null>): BinaryTreeDeleteResult<BinaryTreeNode<K, V>>[];
607
628
  /**
608
629
  * Deletes a node from the tree.
609
- * @remarks Time O(log N), For BST, Red-Black Tree, and AVL Tree subclasses, the worst-case time is O(log N). This implementation finds the node, and if it has two children, swaps it with the rightmost node of its left subtree (in-order predecessor) before deleting. Time O(N) in the worst case. O(N) to find the node (`getNode`) and O(H) (which is O(N) worst-case) to find the rightmost node. Space O(1) (if `getNode` is iterative, which it is).
630
+ * @remarks Time O(N) O(N) to find the node + O(H) for predecessor swap. Space O(1). BST/Red-Black Tree/AVL Tree subclasses override to O(log N).
610
631
  *
611
632
  * @param keyNodeEntryRawOrPredicate - The node to delete.
612
- * @returns An array containing deletion results (for compatibility with self-balancing trees).
633
+ * @returns True if the node was found and deleted, false otherwise.
634
+
635
+
636
+
637
+
613
638
 
614
639
 
615
640
 
@@ -652,7 +677,7 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
652
677
  * console.log(tree.has(3)); // false;
653
678
  * console.log(tree.size); // 4;
654
679
  */
655
- delete(keyNodeEntryRawOrPredicate: BTNRep<K, V, BinaryTreeNode<K, V>> | NodePredicate<BinaryTreeNode<K, V> | null>): BinaryTreeDeleteResult<BinaryTreeNode<K, V>>[];
680
+ delete(keyNodeEntryRawOrPredicate: BTNRep<K, V, BinaryTreeNode<K, V>> | NodePredicate<BinaryTreeNode<K, V> | null>): boolean;
656
681
  /**
657
682
  * Search by predicate
658
683
 
@@ -676,6 +701,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
676
701
 
677
702
 
678
703
 
704
+
705
+
706
+
707
+
679
708
 
680
709
 
681
710
 
@@ -725,6 +754,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
725
754
 
726
755
 
727
756
 
757
+
758
+
759
+
760
+
728
761
 
729
762
 
730
763
 
@@ -739,7 +772,7 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
739
772
  getNodes(keyNodeEntryOrPredicate: K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined | NodePredicate<BinaryTreeNode<K, V>>, onlyOne?: boolean, startNode?: K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined, iterationType?: IterationType): BinaryTreeNode<K, V>[];
740
773
  /**
741
774
  * Gets the first node matching a predicate.
742
- * @remarks Time O(log N), For BST, Red-Black Tree, and AVL Tree subclasses, the worst-case time is O(log N). Time O(N) in the worst case (via `search`). Space O(H) or O(N) (via `search`).
775
+ * @remarks Time O(N) via `search`. Space O(H) or O(N). BST/Red-Black Tree/AVL Tree subclasses override to O(log N) for key lookups.
743
776
  *
744
777
  * @param keyNodeEntryOrPredicate - The key, node, entry, or predicate function to search for.
745
778
  * @param [startNode=this._root] - The node to start the search from.
@@ -773,6 +806,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
773
806
 
774
807
 
775
808
 
809
+
810
+
811
+
812
+
776
813
 
777
814
 
778
815
 
@@ -786,7 +823,7 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
786
823
  getNode(keyNodeEntryOrPredicate: K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined | NodePredicate<BinaryTreeNode<K, V> | null>, startNode?: K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined, iterationType?: IterationType): BinaryTreeNode<K, V> | null | undefined;
787
824
  /**
788
825
  * Gets the value associated with a key.
789
- * @remarks Time O(log N), For BST, Red-Black Tree, and AVL Tree subclasses, the worst-case time is O(log N). Time O(1) if in Map mode. O(N) if not in Map mode (uses `getNode`). Space O(1) if in Map mode. O(H) or O(N) otherwise.
826
+ * @remarks Time O(1) in Map mode, O(N) otherwise (via `getNode`). Space O(1) in Map mode, O(H) or O(N) otherwise. BST subclasses override non-Map-mode to O(log N).
790
827
  *
791
828
  * @param keyNodeEntryOrPredicate - The key, node, or entry to get the value for.
792
829
  * @param [startNode=this._root] - The node to start searching from (if not in Map mode).
@@ -822,6 +859,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
822
859
 
823
860
 
824
861
 
862
+
863
+
864
+
865
+
825
866
 
826
867
 
827
868
 
@@ -836,7 +877,7 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
836
877
  get(keyNodeEntryOrPredicate: K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined, startNode?: K | BinaryTreeNode<K, V> | [K | null | undefined, V | undefined] | null | undefined, iterationType?: IterationType): V | undefined;
837
878
  /**
838
879
  * Checks if a node matching the predicate exists in the tree.
839
- * @remarks Time O(log N), For BST, Red-Black Tree, and AVL Tree subclasses, the worst-case time is O(log N). Time O(N) in the worst case (via `search`). Space O(H) or O(N) (via `search`).
880
+ * @remarks Time O(N) via `search`. Space O(H) or O(N). BST/Red-Black Tree/AVL Tree subclasses override to O(log N) for key lookups.
840
881
  *
841
882
  * @param [keyNodeEntryOrPredicate] - The key, node, entry, or predicate to check for.
842
883
  * @param [startNode] - The node to start the search from.
@@ -872,6 +913,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
872
913
 
873
914
 
874
915
 
916
+
917
+
918
+
919
+
875
920
 
876
921
 
877
922
 
@@ -938,6 +983,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
938
983
 
939
984
 
940
985
 
986
+
987
+
988
+
989
+
941
990
 
942
991
 
943
992
 
@@ -983,6 +1032,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
983
1032
 
984
1033
 
985
1034
 
1035
+
1036
+
1037
+
1038
+
986
1039
 
987
1040
 
988
1041
 
@@ -1036,6 +1089,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1036
1089
 
1037
1090
 
1038
1091
 
1092
+
1093
+
1094
+
1095
+
1039
1096
 
1040
1097
 
1041
1098
 
@@ -1085,6 +1142,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1085
1142
 
1086
1143
 
1087
1144
 
1145
+
1146
+
1147
+
1148
+
1088
1149
 
1089
1150
 
1090
1151
 
@@ -1134,6 +1195,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1134
1195
 
1135
1196
 
1136
1197
 
1198
+
1199
+
1200
+
1201
+
1137
1202
 
1138
1203
 
1139
1204
 
@@ -1208,6 +1273,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1208
1273
 
1209
1274
 
1210
1275
 
1276
+
1277
+
1278
+
1279
+
1211
1280
 
1212
1281
 
1213
1282
 
@@ -1254,6 +1323,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1254
1323
 
1255
1324
 
1256
1325
 
1326
+
1327
+
1328
+
1329
+
1257
1330
 
1258
1331
 
1259
1332
 
@@ -1320,6 +1393,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1320
1393
 
1321
1394
 
1322
1395
 
1396
+
1397
+
1398
+
1399
+
1323
1400
 
1324
1401
 
1325
1402
 
@@ -1362,6 +1439,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1362
1439
 
1363
1440
 
1364
1441
 
1442
+
1443
+
1444
+
1445
+
1365
1446
 
1366
1447
 
1367
1448
 
@@ -1406,6 +1487,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1406
1487
 
1407
1488
 
1408
1489
 
1490
+
1491
+
1492
+
1493
+
1409
1494
 
1410
1495
 
1411
1496
 
@@ -1452,6 +1537,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1452
1537
 
1453
1538
 
1454
1539
 
1540
+
1541
+
1542
+
1543
+
1455
1544
 
1456
1545
 
1457
1546
 
@@ -1500,6 +1589,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1500
1589
 
1501
1590
 
1502
1591
 
1592
+
1593
+
1594
+
1595
+
1503
1596
 
1504
1597
 
1505
1598
 
@@ -1551,6 +1644,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1551
1644
 
1552
1645
 
1553
1646
 
1647
+
1648
+
1649
+
1650
+
1554
1651
 
1555
1652
 
1556
1653
 
@@ -1606,6 +1703,10 @@ export declare class BinaryTree<K = any, V = any, R = any> extends IterableEntry
1606
1703
 
1607
1704
 
1608
1705
 
1706
+
1707
+
1708
+
1709
+
1609
1710
 
1610
1711
 
1611
1712