import { Registry } from "./npm"; export interface IRegistryCollectionShards { sameCollection: Array; differentCollection: Array; } /** * Given an array of Registry objects, returns only those * which are unique and correspond to a VSTS feed. */ export declare function filterUniqueVstsRegistries(registries: Array): Array; export declare function isInSameCollection(r: Registry): boolean; /** * Given an array of Registry objects, splits them * by the collection their VSTS feed resides in. Only * splits by whether they are in the same collection * as the current job scope or a different one. This * depends on running inside of a VSTS agent context * as it depends on SYSTEM_TEAMFOUNDATIONCOLLECTIONURI. */ export declare function shardRegistriesByCollection(registries: Array): IRegistryCollectionShards; export declare function authenticateRegistries(...registries: Array): Promise>;