import { NetworkInfoInterface, PeerList } from '../faces/lib/network'; import { ArCacheInterface } from '../faces/utils/arCache'; import Api from './api'; export declare class Network { private api; private cache; constructor(api: Api, cache?: ArCacheInterface); /** * Get network info * @returns Promise which resolves in the network info object of the current gateway */ getInfo(): Promise; /** * Get a list of peers * @returns Promise which resolves on an array of peers connected to the current gateway */ getPeers(): Promise; }