import { NearChain } from '@galacticcouncil/xc-core'; import { NearTxObserver, NearWallet } from './types'; import { NearKeyPair } from './utils'; import { Call } from '../types'; export declare class NearSigner { #private; constructor(chain: NearChain, wallet: NearWallet | NearKeyPair); /** * Sign & submit a call, then follow it to its final outcome. * * - A key pair signs here and submits over the chain's rpc * - A wallet signs and submits on its own * - A failed receipt is reported as an error - the transaction succeeds * around it, e.g. when a token refunds a transfer its receiver refused */ signAndSend(call: Call, observer: NearTxObserver): Promise; private sendWithKey; private sendWithWallet; }