import * as C from '@collectable/core'; import { ComparatorFn } from '@collectable/core'; import { RedBlackTreeStructure } from '../internals'; /** * Creates a new `RedBlackTree` from an array of key/value pairs (tuples). If no ComparatorFn function is supplied, keys * are compared using logical less-than and greater-than operations, which will generally only be suitable for numeric * or string keys. * * @export * @template K The type of keys in the tree * @template V The type of values in the tree * @param {[K, V][]} pairs An array of pairs (tuples), each being a two-element array of [key, value] * @param {ComparatorFn} compare A comparison function, taking two keys, and returning a value less than 0 if the * first key is smaller than the second, a value greater than 0 if the first key is * greater than the second, or 0 if they're the same. * @returns {RedBlackTreeStructure} A tree populated with an entry for each pair in the input array */ export declare function fromPairs(compare: ComparatorFn, pairs: [K, V][] | Iterable<[K, V]>, mutability?: C.PreferredContext): RedBlackTreeStructure;