/** * @namespace proto * @typedef {import("@hashgraph/proto").proto.ITokenTransferList} HashgraphProto.proto.ITokenTransferList * @typedef {import("@hashgraph/proto").proto.INftTransfer} HashgraphProto.proto.INftTransfer * @typedef {import("@hashgraph/proto").proto.IAccountAmount} HashgraphProto.proto.IAccountAmount * @typedef {import("@hashgraph/proto").proto.ITokenID} HashgraphProto.proto.ITokenID * @typedef {import("@hashgraph/proto").proto.IAccountID} HashgraphProto.proto.IAccountID */ /** * @typedef {object} NftTransfer * @property {AccountId} sender * @property {AccountId} recipient * @property {Long} serial * @property {boolean} isApproved */ /** * @augments {ObjectMap} */ export default class TokenNftTransferMap extends ObjectMap { /** * @param {HashgraphProto.proto.ITokenTransferList[]} transfers * @returns {TokenNftTransferMap} */ static _fromProtobuf(transfers: HashgraphProto.proto.ITokenTransferList[]): TokenNftTransferMap; constructor(); /** * @internal * @param {TokenId} tokenId * @param {NftTransfer} nftTransfer */ __set(tokenId: TokenId, nftTransfer: NftTransfer): void; /** * @returns {HashgraphProto.proto.ITokenTransferList[]} */ _toProtobuf(): HashgraphProto.proto.ITokenTransferList[]; } export namespace HashgraphProto { namespace proto { type ITokenTransferList = import("@hashgraph/proto").proto.ITokenTransferList; type INftTransfer = import("@hashgraph/proto").proto.INftTransfer; type IAccountAmount = import("@hashgraph/proto").proto.IAccountAmount; type ITokenID = import("@hashgraph/proto").proto.ITokenID; type IAccountID = import("@hashgraph/proto").proto.IAccountID; } } export type NftTransfer = { sender: AccountId; recipient: AccountId; serial: Long; isApproved: boolean; }; import TokenId from "../token/TokenId.js"; import ObjectMap from "../ObjectMap.js"; import AccountId from "../account/AccountId.js"; import Long from "long";