import { ApiPromise } from '@polkadot/api'; import { ApiDecoration } from '@polkadot/api/types'; import type { HexString } from '@polkadot/util/types'; import { IBlock } from '@subql/node-core'; import { BlockHeader, LightSubstrateEvent, SubstrateBlock, SubstrateEvent, SubstrateExtrinsic } from '@subql/types'; export interface BlockContent { block: SubstrateBlock; extrinsics: SubstrateExtrinsic[]; events: SubstrateEvent[]; } export interface LightBlockContent { block: BlockHeader; events: LightSubstrateEvent[]; } export type BestBlocks = Record; export type ApiAt = ApiDecoration<'promise'> & { rpc: ApiPromise['rpc']; }; export declare function isFullBlock(block: BlockContent | LightBlockContent): block is BlockContent; export declare function getBlockSize(block: IBlock): number;