import type { Action, FinalExecutionOutcome, Network, SignedMessage, SignMessageParams, Transaction } from "@near-wallet-selector/core"; import { type Transaction as NearTransaction } from "@near-js/transactions"; import { JsonRpcProvider } from "@near-js/providers"; import { type KeyPairString, type PublicKey } from "@near-js/crypto"; interface WalletMessage { status: "success" | "failure" | "pending"; transactionHashes?: string; error?: string; [key: string]: unknown; signedRequest?: SignedMessage; errorMessage?: string; errorCode?: string; } interface FunctionCallKey { privateKey: KeyPairString; contractId: string; methods: Array; } export declare class MyNearWalletConnector { walletUrl: string; signedAccountId: string; functionCallKey: FunctionCallKey | null; provider: JsonRpcProvider; network: Network; constructor(walletUrl: string, network: Network); getAccountId(): string; getPublicKey(): PublicKey | undefined; isSignedIn(): boolean; signOut(): void; requestSignIn({ contractId, methodNames, }: { contractId?: string; methodNames?: Array; }): Promise>; requestSignInUrl({ contractId, methodNames, }: { contractId?: string; methodNames?: Array; }): Promise; signMessage({ message, nonce, recipient, callbackUrl, state, }: SignMessageParams): Promise<{ accountId: string; publicKey: string; signature: string; }>; signAndSendTransactions(transactionsWS: Array): Promise>; signAndSendTransaction({ receiverId, actions, }: { receiverId: string; actions: Array; }): Promise; completeTransaction({ receiverId, actions, }: { receiverId: string; actions: Array; }): Promise; signAndSendTransactionsMNW(txs: Array): Promise>; storedKeyCanSign(receiverId: string, actions: Array): boolean | undefined; signUsingKeyPair({ receiverId, actions, }: { receiverId: string; actions: Array; }): Promise; requestSignTransactionsUrl(txs: Array): string; handlePopupTransaction(url: string, callback: (result: WalletMessage) => T): Promise; private setupMessageHandler; } export {};