import { ApiPromise } from "@polkadot/api"; import { GenericExtrinsic } from "@polkadot/types/extrinsic"; import { SignedBlock } from "@polkadot/types/interfaces"; import { ISubmittableResult } from "@polkadot/types/types/extrinsic"; import BigNumber from "bignumber.js"; import { TNetworkType } from "./entity"; export declare class PolkadotProvider { private readonly config; static isSupported(): boolean; static web3FromAddress(address: string): Promise; private api?; private networkType?; constructor(config: { polkadotUrl: string; networkType?: TNetworkType; }); getRawApi(): ApiPromise; isConnected(): boolean; connect(): Promise; getNetworkType(): Promise; private _scaleUp; private _scaleDown; calcDecimals(): number; getAccountBalance(address: string): Promise<{ reserved: BigNumber; miscFrozen: BigNumber; free: BigNumber; feeFrozen: BigNumber; nonce: BigNumber; }>; getMinSafeDepositVal(): BigNumber; sendFundsWithExtrinsic(sender: string, recipient: string, amount: BigNumber): Promise<{ extId: string; transactionHash: string; blockHash: string; }>; getMaxPossibleSendAmount(sender: string, recipient: string, amount: BigNumber): Promise; sendFundsTo(sender: string, recipient: string, amount: BigNumber): Promise<{ submittableResult: ISubmittableResult; blockHash: string; transactionHash: string; }>; getExtrinsicIndexByHash(transactionHash: string, blockHash: string): Promise<{ extrinsic: GenericExtrinsic; extId: string; signedBlock: SignedBlock; indexAt: number; }>; getAccounts(): Promise; signRawMessage(account: string, hexData: string): Promise; static extractPublicKeyHexFromAddress(address: string): string; }