import { BlockNumber, Moment } from "@polkadot/types/interfaces/runtime"; import { ApiPromise } from "@polkadot/api"; import { SpWeightsRuntimeDbWeight } from "@polkadot/types/lookup"; /** * @category BTC Bridge * The type Big represents Wrapped or Collateral token denominations, * while the type BN represents Planck or Satoshi denominations. */ export interface ConstantsAPI { /** * @returns Maximum number of block number to block hash mappings to keep (oldest pruned first). */ getSystemBlockHashCount(): BlockNumber; /** * @returns The weight of database operations that the runtime can invoke. */ getSystemDbWeight(): SpWeightsRuntimeDbWeight; /** * @returns The minimum period between blocks. Beware that this is different to the *expected* period * that the block production apparatus provides. Your chosen consensus system will generally * work with this to determine a sensible block time. e.g. For Aura, it will be double this * period on default settings. */ getTimestampMinimumPeriod(): Moment; } export declare class DefaultConstantsAPI implements ConstantsAPI { private api; constructor(api: ApiPromise); getSystemBlockHashCount(): BlockNumber; getSystemDbWeight(): SpWeightsRuntimeDbWeight; getTimestampMinimumPeriod(): Moment; }