import { BaseWallet, CalcTxHashParams, DerivePriKeyParams, GetDerivedPathParam, NewAddressParams, SignCommonMsgParams, SignTxParams, ValidAddressParams, ValidPrivateKeyParams } from '@okxweb3/coin-base'; import { AccessKey } from './index'; export declare enum NearTypes { TransferNear = 0, TransferToken = 1, DAppTx = 2, DAppTxs = 3, AddKey = 4, DelKey = 5 } export type ActionParams = { methodName: string; deposit?: string; args: any; gas?: string; }; export type DAppTxParams = { from: string; blockHash: string; receiverId: string; nonce: number; actions: ActionParams[]; }; export type TransactionParams = { receiverId: string; actions: ActionParams[]; }; export type DAppTxsParams = { from: string; blockHash: string; nonce: number; transactions: TransactionParams[]; }; export type TransferParams = { from: string; blockHash: string; receiverId: string; nonce: number; amount: string; }; export type TransferTokenParams = { from: string; blockHash: string; receiverId: string; contract: string; nonce: number; amount: string; depositGas: string; transferGas: string; depositValue: string; minTransferTokenValue: string; shouldDeposit: boolean; }; export type TransferTokenArg = { amount: string; receiver_id: string; }; export type AddKeyParams = { from: string; blockHash: string; nonce: number; receiverId: string; publicKey: string; accessKey: AccessKey; }; export type AddKeyParamsSES = { from: string; blockHash: string; nonce: number; receiverId: string; publicKey: string; accessKeyUseFull: boolean; accessKeyReceiverId: string; accessKeyMethodNames: string[]; accessKeyAllowance: string; }; export type DelKeyParams = { from: string; blockHash: string; nonce: number; receiverId: string; publicKey: string; }; export declare class NearWallet extends BaseWallet { getDerivedPath(param: GetDerivedPathParam): Promise; getRandomPrivateKey(): Promise; getDerivedPrivateKey(param: DerivePriKeyParams): Promise; getNewAddress(param: NewAddressParams): Promise; validPrivateKey(param: ValidPrivateKeyParams): Promise; getBase58Address(privateKey: string): string; getPrvFromBase58(privateKey: string): string; getBase58Pubkey(privateKey: string): import("./keypair").PublicKey; signCommonMsg(params: SignCommonMsgParams): Promise; signMessage(param: SignTxParams): Promise; signTransaction(param: SignTxParams): Promise; validAddress(param: ValidAddressParams): Promise; calcTxHash(param: CalcTxHashParams): Promise; }