import { ethers } from 'ethers'; import { Account, providers as najProviders } from 'near-api-js'; import { TransactionInfo, TransferStatus } from '@near-eth/client/dist/types'; export declare const SOURCE_NETWORK = "aurora"; export declare const DESTINATION_NETWORK = "near"; export declare const TRANSFER_TYPE = "@near-eth/aurora-nep141/bridged-erc20/sendToNear"; export interface TransferDraft extends TransferStatus { type: string; burnHashes: string[]; burnReceipts: ethers.providers.TransactionReceipt[]; } export interface Transfer extends TransactionInfo, TransferDraft { id: string; decimals: number; destinationTokenName: string; recipient: string; sender: string; sourceTokenName: string; symbol: string; startTime?: string; auroraEvmAccount?: string; auroraChainId?: number; } export interface TransferOptions { provider?: ethers.providers.JsonRpcProvider; auroraChainId?: number; auroraErc20Abi?: string; signer?: ethers.Signer; unwrapWNear?: boolean; } export declare const i18n: { en_US: { steps: (_transfer: Transfer) => never[]; statusMessage: (transfer: Transfer) => "Confirming transaction" | "Completed" | "Failed: check transaction status from Wallet"; callToAction: (transfer: Transfer) => "Retry" | null; }; }; /** * Called when status is FAILED * @param transfer Transfer object to act on. */ export declare function act(transfer: Transfer, options?: TransferOptions): Promise; export declare function checkStatus(transfer: Transfer): Promise; export declare function findAllTransfers({ fromBlock, toBlock, sender, nep141Address, options }: { fromBlock: number | string; toBlock: number | string; sender: string; nep141Address: string; options?: { provider?: ethers.providers.Provider; auroraErc20Address?: string; auroraErc20Abi?: string; auroraEvmAccount?: string; nearAccount?: Account; nearProvider?: najProviders.Provider; decimals?: number; symbol?: string; }; }): Promise; export declare function recover(burnTxHash: string, options?: { provider?: ethers.providers.Provider; nep141Address?: string; auroraEvmAccount?: string; nearAccount?: Account; nearProvider?: najProviders.Provider; decimals?: number; symbol?: string; auroraChainId?: number; }): Promise; export declare function checkBurn(transfer: Transfer, options?: { provider?: ethers.providers.Provider; auroraChainId?: number; }): Promise; export declare function payNep141Storage({ nep141Address, storageDeposit, storageAccount, options }: { nep141Address: string; storageDeposit: string; storageAccount: string; options?: { nearAccount?: Account; }; }): Promise; export declare function sendToNear({ nep141Address, amount, recipient, options }: { nep141Address: string; amount: string | ethers.BigNumber; recipient: string; options?: { symbol?: string; decimals?: number; sender?: string; auroraChainId?: number; provider?: ethers.providers.JsonRpcProvider; auroraErc20Abi?: string; auroraErc20Address?: string; signer?: ethers.Signer; nearAccount?: Account; nearProvider?: najProviders.Provider; auroraEvmAccount?: string; unwrapWNear?: boolean; }; }): Promise; export declare function burn(transfer: Transfer, options?: { provider?: ethers.providers.JsonRpcProvider; auroraChainId?: number; auroraErc20Abi?: string; signer?: ethers.Signer; unwrapWNear?: boolean; }): Promise; //# sourceMappingURL=index.d.ts.map