import { ApiPromise } from "@polkadot/api"; import { BitcoinH256Le } from "@polkadot/types/lookup"; export declare const DEFAULT_STABLE_CONFIRMATIONS = 6; /** * @category BTC Bridge */ export interface BTCRelayAPI { /** * @returns A global security parameter: the required block confirmations * for a transaction to be considered stable on Bitcoin */ getStableBitcoinConfirmations(): Promise; /** * @returns A global security parameter: the required block confirmations * for a transaction to be considered stable on the parachain */ getStableParachainConfirmations(): Promise; /** * @returns The raw transaction data, represented as a Buffer object */ getLatestBlock(): Promise; /** * @returns The height of the latest Bitcoin block that was rekayed by the BTC-Relay */ getLatestBlockHeight(): Promise; /** * @returns True if the block is in the relay, false otherwise. */ isBlockInRelay(blockHash: string): Promise; } export declare class DefaultBTCRelayAPI implements BTCRelayAPI { private api; constructor(api: ApiPromise); getStableBitcoinConfirmations(): Promise; getStableParachainConfirmations(): Promise; getLatestBlock(): Promise; getLatestBlockHeight(): Promise; isBlockInRelay(blockHash: string): Promise; }