import { HeaderExtended } from '@polkadot/api-derive/types'; import { StorageKey, Vec } from '@polkadot/types'; import { ValidatorId } from '@polkadot/types/interfaces'; import { EventRecord } from '@polkadot/types/interfaces/system'; import { Observable } from 'rxjs'; import GenericEvent from './GenericEvent'; import { Block, BlockAt, BlockAtOptions, Bytes, ChainInfo, Confirmation, Event, Extrinsic, Header, Meta, RuntimeVersion, ScannerOptions, SubcribeOptions, SubscribeBlock, SubscribeBlockError, WsProvider } from './types'; declare class Scanner { private rpcProvider; private knownTypes; private metadataRequest; wsProvider: WsProvider; chainInfo: Record; constructor(options: ScannerOptions); private createMethodSubscribe; getBlockDetail(_blockAt?: BlockAtOptions): Promise; getHeader(header: Header, _blockAt: BlockAtOptions, meta: Meta): Promise; getRuntimeVersion(blockHash?: Bytes): Promise; getBlockHash(at: number | Bytes): Promise; getBlockAt(blockAt?: { blockHash?: Bytes; blockNumber?: number; }): Promise; getParentHash(_blockHash?: Bytes): Promise; getSpecTypes(version: RuntimeVersion): { GenericEvent: typeof GenericEvent; }; getChainInfo(_blockAt?: BlockAtOptions): Promise; getSessionValidators(_blockAt: BlockAtOptions): Promise | []>; getEvents(_blockAt: BlockAtOptions, meta: Meta): Promise>; getEventData(event: EventRecord, index: number): Event; getStorageValue(storageKey: StorageKey, _blockAt: BlockAtOptions): Promise; decodeTx(txData: Bytes, _blockAt: BlockAtOptions, meta: Meta): Omit; subscribeNewBlockNumber(confirmation?: Confirmation): Observable; subscribe(options?: SubcribeOptions): Observable; } export default Scanner;