import { OpenedContract, SenderArguments } from "@ton/core"; import { ContractAdapter } from "@ton-api/ton-adapter"; import { TonApiClient } from "@ton-api/client"; import OmniService from "../bridge.js"; import { PendingDeposit, WithdrawArgs } from "../types.js"; import { TonMetaWallet as TonMetaWalletV2 } from "./wrappers/TonMetaWallet.js"; import { DepositJetton as DepositJettonV2 } from "./wrappers/DepositJetton.js"; import { JettonMinter as JettonMinterV2 } from "./wrappers/JettonMinter.js"; import { JettonWallet as JettonWalletV2 } from "./wrappers/JettonWallet.js"; import { UserJetton as UserJettonV2 } from "./wrappers/UserJetton.js"; import { ReviewFee } from "../fee.js"; declare class TonOmniService { readonly omni: OmniService; readonly tonApi: TonApiClient; readonly client: ContractAdapter; static TON_MINTER_TO_JETTON_MAPPER: { [k: string]: string; }; static TON_JETTON_TO_MINTER_MAPPER: Record; readonly contract: string; private metaWallet?; constructor(omni: OmniService, options: { rpc?: TonApiClient | string; metaWallet?: string; contract?: string; }); registerMinterJetton(minterAddress: string): Promise; getMetaWallet(): { metaWallet: OpenedContract; DepositJetton: typeof DepositJettonV2; UserJetton: typeof UserJettonV2; JettonMinter: typeof JettonMinterV2; JettonWallet: typeof JettonWalletV2; }; getWithdrawFee(): Promise; getDepositFee(token: string): Promise; executor(sendTransaction: (tx: SenderArguments) => Promise): { hash: string; send: (args: SenderArguments) => Promise; }; getTokenBalance(token: string, address?: string): Promise; isWithdrawUsed(nonce: string, receiver: string): Promise; withdraw(args: WithdrawArgs & { refundAddress: string; sendTransaction: (tx: SenderArguments) => Promise; }): Promise; deposit(args: { refundAddress?: string; token: string; amount: bigint; intentAccount: string; sender: string; sendTransaction: (tx: SenderArguments) => Promise; }): Promise; clearDepositNonceIfNeeded(args: { nonce: string; sendTransaction: (tx: SenderArguments) => Promise; }): Promise; parseDeposit(hash: string): Promise; } export default TonOmniService;