import { DelegateAction, SignedDelegate } from '@near-js/transactions'; import { NetworkId, Transaction } from '@near-wallet-selector/core'; import { SignAndSendTransactionOptions } from 'near-api-js/lib/account'; import { Account, transactions } from 'near-api-js'; import { SignedTransaction } from 'near-api-js/lib/transaction'; import { PublicKey } from 'near-api-js/lib/utils'; import { FinalExecutionOutcome, QueryResponseKind } from 'near-api-js/lib/providers/provider'; import * as nep0413 from './utils/nep0413'; import { DelegatedTransaction } from './types'; import NearSnap from './snap'; import { DelegateProvderProtocol } from './delegate'; declare class NearSnapAccount extends Account { readonly snap: NearSnap; readonly publicKey: PublicKey; readonly delegateProvider?: DelegateProvderProtocol; constructor(options: { snap?: NearSnap; network: NetworkId; accountId: string; publicKey: PublicKey; delegateProvider?: DelegateProvderProtocol; }); get network(): NetworkId; connect(contractId: string, methods?: string[]): Promise>; disconnect(): Promise>; authenticate(recipient: string, message: string): Promise<{ accountId: string; publicKey: string; signature: string; }>; signMessage(data: nep0413.SignMessageOptionsNEP0413): Promise<{ accountId: string; publicKey: string; signature: string; }>; protected signTransaction(receiverId: string, actions: transactions.Action[]): Promise<[Uint8Array, SignedTransaction]>; activateIfNeeded(askCount?: number): Promise; getLastNonce(): Promise<{ nonce: number; } & QueryResponseKind>; signedDelegate({ actions, blockHeightTtl, receiverId, payer, }: DelegatedTransaction & { payer?: string; }): Promise; signAndSendTransaction({ receiverId, actions, }: SignAndSendTransactionOptions): Promise; buildDelegateAction(tx: Omit | DelegateAction): Promise<{ action: DelegateAction; allowed: boolean; }>; executeDelegate(tx: Omit | DelegateAction): Promise; executeTransaction(tx: Omit & { disableDelegate?: boolean; }): Promise; executeTransactions(trans: Omit[]): Promise; static restore({ network, delegateProvider, snap, }: { network: NetworkId; delegateProvider?: DelegateProvderProtocol; snap?: NearSnap; }): Promise; static connect({ snap, delegateProvider, contractId, methods, network, }: { delegateProvider?: DelegateProvderProtocol; contractId?: string; methods?: string[]; network: NetworkId; snap: NearSnap; }): Promise; } export default NearSnapAccount;