import { Wallet } from '@phoenix-wallet/core'; import { AptosChain } from '../chains/AptosChain'; import { AptosConnector } from '../connectors/AptosConnector'; import { AptosWalletClient } from '../connectors/AptosWalletClient'; import { AnyRawTransaction, SimpleTransaction } from '@aptos-labs/ts-sdk'; import { AptosSignAndSubmitTransactionInput } from '@aptos-labs/wallet-standard'; /** * Aptos transaction types * * Supports Simple transactions, wallet-standard transactions, and raw transactions * * @public */ export type AptosTransaction = SimpleTransaction | AptosSignAndSubmitTransactionInput | AnyRawTransaction; /** * Aptos wallet implementation * * Provides wallet functionality for the Aptos blockchain including transaction * signing with Ed25519, message signing, and APT balance queries. * * Built on Aptos TypeScript SDK and wallet-standard for broad wallet compatibility. * Compatible with Petra, Pontem, OKX, Nightly, and other Aptos wallets. * * @example Basic usage * ```typescript * const wallet = new AptosWallet( * '0x1234...abcd', * aptosChain, * connector, * walletClient * ); * * // Sign a message * const signature = await wallet.signMessage('Hello, Aptos!'); * * // Get APT balance * const { uiAmount, symbol } = await wallet.getBalance(); * console.log(`Balance: ${uiAmount} ${symbol}`); * ``` * * @example Sending a transaction * ```typescript * const transaction = { * data: { * function: '0x1::coin::transfer', * typeArguments: ['0x1::aptos_coin::AptosCoin'], * functionArguments: [recipientAddress, amount] * } * }; * * const txHash = await wallet.sendTransaction(transaction); * console.log('Transaction hash:', txHash); * ``` * * @public */ export declare class AptosWallet extends Wallet { constructor(_address: string, chain: AptosChain, connector: AptosConnector, walletClient: AptosWalletClient); signMessage(message: string | Uint8Array): Promise; signTransaction(transaction: AnyRawTransaction): Promise; sendTransaction(transaction: AptosSignAndSubmitTransactionInput): Promise; sendRawTransaction(transaction: string): Promise; signAllTransactions(transactions: AptosTransaction[]): Promise; get address(): string; getBalance(): Promise<{ amount: any; uiAmount: string; decimals: number; symbol: string; name: string; }>; } //# sourceMappingURL=AptosWallet.d.ts.map