import { type AccountAddress, type AnyRawTransaction, AccountAuthenticatorEd25519, Ed25519PublicKey, Ed25519Signature } from '@aptos-labs/ts-sdk'; import { type Logger } from '@chainlink/ccip-sdk/src/index.ts'; import AptosLedger from '@ledgerhq/hw-app-aptos/lib/Aptos'; import { type BytesLike } from 'ethers'; /** * A LedgerSigner object represents a signer for a private key on a Ledger hardware wallet. * This object is initialized alongside a LedgerClient connection, and can be used to sign * transactions via a ledger hardware wallet. */ export declare class AptosLedgerSigner { derivationPath: string; readonly client: AptosLedger.default; readonly publicKey: Ed25519PublicKey; readonly accountAddress: AccountAddress; /** * Private constructor - use static `create` method instead. * @internal */ private constructor(); /** * Creates a new AptosLedgerSigner instance. * @param derivationPath - BIP44 derivation path. * @returns A new AptosLedgerSigner instance. */ static create(derivationPath: string): Promise; /** * Prompts user to sign associated transaction on their Ledger hardware wallet. * @param txn - Raw transaction to sign. * @returns Account authenticator with the signature. */ signTransactionWithAuthenticator(txn: AnyRawTransaction): Promise; /** * Signs a message - returns just the signature. * @param message - Message bytes to sign. * @returns Ed25519 signature. */ sign(message: BytesLike): Promise; /** * Terminates the LedgerClient connection. */ close(): Promise; } /** * Loads an Aptos wallet from the provided options. * @param wallet - wallet options (as passed from yargs argv) * @returns Promise to AptosAsyncAccount instance */ export declare function loadAptosWallet({ wallet: walletOpt, interactive }: { wallet?: unknown; interactive?: boolean; }, logger?: Logger): Promise; //# sourceMappingURL=aptos.d.ts.map