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