import Api from './api'; import 'arconnect'; import { Network } from './network'; import { BlockInterface } from '../faces/lib/block'; import { ArCacheInterface } from '../faces/utils/arCache'; export default class Blocks { private api; private network; private cache; constructor(api: Api, network: Network, cache: ArCacheInterface); /** * Gets a block by its "indep_hash" */ get(indepHash: string): Promise; /** * Gets current block data (ie. block with indep_hash = Network.getInfo().current) */ getCurrent(): Promise; }