import { Asset, Memo, Operation, Transaction, xdr } from "@stellar/stellar-base"; import { WalletType } from "../omni/config"; import { OmniWallet } from "../OmniWallet"; import { OmniConnector } from "../OmniConnector"; import { ReviewFee } from "../omni/bridge"; import { Token } from "../omni/token"; interface ProtocolWallet { signTransaction?: (transaction: Transaction) => Promise<{ signedTxXdr: string; }>; signMessage?: (message: string) => Promise<{ signedMessage: string; }>; address: string; } export declare const ACCOUNT_FOR_SIMULATE = "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7"; export declare enum ASSET_CONTRACT_METHOD { GET_ALLOWANCE = "allowance", APPROVE_ALLOWANCE = "approve", GET_BALANCE = "balance", TRANSFER = "transfer", NAME = "name", BURN = "burn" } declare class StellarWallet extends OmniWallet { readonly connector: OmniConnector; readonly wallet: ProtocolWallet; readonly type = WalletType.STELLAR; constructor(connector: OmniConnector, wallet: ProtocolWallet); get address(): string; get publicKey(): string; get omniAddress(): string; fetchBalances(): Promise>; fetchBalance(chain: number, token: string): Promise; transferFee(token: Token): Promise; emulateTransfer(token: string, receiver: string, amount: bigint, memo?: string): Promise<{ fee: ReviewFee; tx: Transaction; }>; transfer(args: { token: Token; receiver: string; amount: bigint; comment?: string; gasFee?: ReviewFee; }): Promise; signIntentsWithAuth(domain: string, intents?: Record[]): Promise<{ signed: Record; publicKey: string; chainId: WalletType; address: string; seed: string; }>; sendTransaction(transaction: Transaction): Promise; signMessage(message: string): Promise<{ signedMessage: string; }>; signIntents(intents: Record[], options?: { deadline?: number; nonce?: Uint8Array; }): Promise>; static isTokenActivated(address: string, token: string): Promise; changeTrustline(address: string): Promise; readonly assetsCache: Map; getAssetFromContractId(id: string): Promise; buildSmartContactTx(publicKey: string, contactId: string, method: string, ...args: any[]): Promise, Operation[]>>; getTokenBalance(token: Asset | string, contract: string): Promise; i128ToInt(val: xdr.Int128Parts): string; } export default StellarWallet;