import type { Transaction, VersionedTransaction } from "@solana/web3.js"; import Web3Auth, { CtorArgs, LoginWithSessionIdParams, WsEmbedParams } from "@web3auth/ws-embed"; export type TransactionOrVersionedTransaction = Transaction | VersionedTransaction; export interface RequestArguments { method: string; params?: T; } declare class Torus extends Web3Auth { constructor(params?: Omit); init(params?: Partial>): Promise; loginWithSessionId(_: LoginWithSessionIdParams): Promise; requestAccounts(): Promise; getAccounts(): Promise; signAndSendTransaction(transaction: T): Promise; /** * Signs a transaction and returns the signature * @param transaction - The transaction to sign * @returns The signature of the transaction encoded in base58 */ signTransaction(transaction: T): Promise; /** * Signs multiple transactions and returns the serialized transactions * @param transactions - The transactions to sign * @returns The serialized transactions encoded in base64 */ signAllTransactions(transactions: T[]): Promise; /** * Signs a message and returns the signature * @param message - The message to sign * @returns The signature of the message encoded in base58 */ signMessage(message: string, pubKey: string): Promise; request(args: RequestArguments): Promise; private serializeTransaction; } export default Torus;