import * as core from "@shapeshiftoss/hdwallet-core"; import { Isolation } from "../.."; export declare class NearAdapter { protected readonly nodeAdapter: Isolation.Adapters.Ed25519; constructor(nodeAdapter: Isolation.Adapters.Ed25519); /** * Get NEAR implicit account address from BIP32 path * * NEAR implicit accounts are derived directly from Ed25519 public keys: * - Account ID = lowercase hex encoding of the 32-byte Ed25519 public key * - Result is a 64 character hex string * * @see https://docs.near.org/integrations/implicit-accounts */ getAddress(addressNList: core.BIP32Path): Promise; /** * Sign NEAR transaction * * NEAR transaction signing process: * 1. Receive Borsh-serialized transaction bytes * 2. Hash with SHA-256 * 3. Sign hash with Ed25519 private key * 4. Return signature as hex string * * Note: The caller is responsible for Borsh serialization of the transaction */ signTransaction(txBytes: Uint8Array, addressNList: core.BIP32Path): Promise; /** * Get public key as hex string. Caller converts to ed25519:base58 format if needed. */ getPublicKey(addressNList: core.BIP32Path): Promise; } export default NearAdapter; //# sourceMappingURL=near.d.ts.map