import { BlockNumber } from '@plugnet/types/interfaces'; import { Observable } from 'rxjs'; import { ApiInterfaceRx } from '@plugnet/api/types'; /** * @name bestNumberLag * @returns A number of blocks * @description Calculates the lag between finalized head and best head * @example *
* * ```javascript * api.derive.chain.bestNumberLag((lag) => { * console.log(`finalized is ${lag} blocks behind head`); * }); * ``` */ export declare function bestNumberLag(api: ApiInterfaceRx): () => Observable;