import type { RawAccount, RawTransaction } from "./rawTypes"; import type { Account, Transaction } from "./types"; /** * Serialize an [[Account]] object in order to send it over JSON-RPC protocol * to the Ledger Live platform * @param account - The account object to serialize * * @returns The raw representation of the provided account object */ export declare function serializeAccount({ id, name, address, currency, balance, spendableBalance, blockHeight, lastSyncDate, }: Account): RawAccount; /** * Deserialize a [[RawAccount]] object after it has been received over JSON-RPC * protocol from the Ledger Live platform * @param rawAccount - The raw account representation to deserialize * * @returns The object account of the provided raw account representation */ export declare function deserializeAccount({ id, name, address, currency, balance, spendableBalance, blockHeight, lastSyncDate, }: RawAccount): Account; /** * Serialize an [[Transaction]] object in order to send it over JSON-RPC * protocol to the Ledger Live platform * @param transaction - The transaction object to serialize * * @returns The raw representation of the provided transaction object */ export declare function serializeTransaction(transaction: Transaction): RawTransaction; /** * Deserialize a [[RawTransaction]] object after it has been received over * JSON-RPC protocol from the Ledger Live platform * @param rawTransaction - The raw transaction representation to deserialize * * @returns The object transaction of the provided raw transaction representation */ export declare function deserializeTransaction(rawTransaction: RawTransaction): Transaction;