import { HexString } from "ethers-6/lib.commonjs/utils/data"; import { IChainInfo, ICrossRule, IGlobalState, IOBridgeConfig, ISearchTxResponse, IToken, ITokensByChain, ITransactionInfo, ITransferConfig, TAddress, TBridgeResponse, TSymbol, TTokenName, TRefundResponse } from "../types"; export default class Orbiter { private static instance; private chainsService; private tokensService; private crossRulesService; private historyService; private refundService; private crossControl; constructor(config?: Partial); private generateSigner; static getInstance(): Orbiter; updateConfig: (config: Partial) => void; getGlobalState: () => IGlobalState; setGlobalState: (newState: IGlobalState) => void; queryChains: () => Promise; queryChainInfo: (chainId: string | number) => Promise; queryTokensDecimals: (chainId: string | number, token: TTokenName | TAddress | TSymbol | Array) => Promise; queryToken: (chainId: string | number, token: TTokenName | TAddress | TSymbol) => Promise; queryTokensAllChain: () => Promise; queryTokensByChainId: (chainId: string | number) => Promise; queryRouters: () => Promise; queryRouter: (params: { dealerId: string | HexString; fromChainInfo: IChainInfo; toChainInfo: IChainInfo; fromCurrency: string; toCurrency: string; }) => Promise; getHistoryListAsync: (params: { account: string; pageNum: number; pageSize: number; }) => Promise<{ transactions: ITransactionInfo[]; count: number; }>; searchTransaction: (txHash: string) => Promise; toRefund: (sendOptions: { to: string; amount: number | string; token: TTokenName | TAddress | TSymbol; fromChainId: string | number; isLoopring?: boolean; }) => Promise; toBridge: (transferConfig: ITransferConfig) => Promise; } //# sourceMappingURL=index.d.ts.map