import { ENR } from "../enr"; import { NodeCapabilityCount } from "./dns"; /** * Fetch nodes using passed [[getNode]] until all wanted capabilities are * fulfilled or the number of [[getNode]] call exceeds the sum of * [[wantedNodeCapabilityCount]] plus [[errorTolerance]]. */ export declare function fetchNodesUntilCapabilitiesFulfilled(wantedNodeCapabilityCount: Partial, errorTolerance: number, getNode: () => Promise): Promise; /** * Fetch nodes using passed [[getNode]] until all wanted capabilities are * fulfilled or the number of [[getNode]] call exceeds the sum of * [[wantedNodeCapabilityCount]] plus [[errorTolerance]]. */ export declare function yieldNodesUntilCapabilitiesFulfilled(wantedNodeCapabilityCount: Partial, errorTolerance: number, getNode: () => Promise): AsyncGenerator;