import { Adapter, AdapterState, WalletReadyState } from '@tronweb3/tronwallet-abstract-adapter'; import type { Transaction, SignedTransaction, AdapterName } from '@tronweb3/tronwallet-abstract-adapter'; import type { Account, LedgerUtils, LedgerWalletConfig } from './LedgerWallet.js'; export type LedgerAdapterConfig = LedgerWalletConfig; export declare const LedgerAdapterName: AdapterName<"Ledger">; export declare class LedgerAdapter extends Adapter { name: AdapterName<"Ledger">; url: string; icon: string; private _readyState; private _state; private _connecting; private _address; private config; private _wallet; constructor(config?: LedgerAdapterConfig); get address(): string | null; get state(): AdapterState; get connecting(): boolean; get readyState(): WalletReadyState; get ledgerUtils(): LedgerUtils; connect(options?: { account: Omit; }): Promise; disconnect(): Promise; private _checkAndSign; /** * Sign a transaction. * @param transaction - The transaction to sign. * @param options.fallbackToHashSign - Whether to use hash signing when the transaction is too large. Default is true. */ signTransaction(transaction: Transaction, options?: { fallbackToHashSign?: boolean; }): Promise; /** * Sign a transaction by its hash. * @param transaction - The transaction to sign. */ signTransactionHash(transaction: Transaction): Promise; /** * Sign a message and optionally convert the signature suffix. * * By default, if the signature ends with '00' or '01', it will be replaced with '1b' or '1c' respectively. * This is required for compatibility with some signature verification logic. * * @param message - The message to sign. * @param options.convertSuffix - Whether to convert the signature suffix. Default is true. * @returns The signature string, with suffix converted if enabled. */ signMessage(message: string, options?: { convertSuffix?: boolean; }): Promise; } //# sourceMappingURL=adapter.d.ts.map